C# Class ListsSample.MainPage

This is the main page of the application. Most logic for maintaining the data is handled in the ContextModel class.
Inheritance: System.Windows.Controls.UserControl
Mostra file Open project: rafek/SyncFx

Public Methods

Method Description
LoginWindowClosed ( object sender, EventArgs e ) : void

Event handler for when the login window is closed

MainPage ( ) : System
ModelLoadCompleted ( object sender, LoadCompletedEventArgs e ) : void

Called when the context is don laoding

ModifyItemWindowClosed ( object sender, EventArgs e ) : void

Event handler for the modify item window closed event.

ModifyListWindowClosed ( object sender, EventArgs e ) : void

Called when the new list creation window is closed

Private Methods

Method Description
Bind ( ) : void

Binds the context to the context and do an initial sync

DeleteItemButtonClick ( object sender, RoutedEventArgs e ) : void

Deletes the selected item

DeleteListButtonClick ( object sender, RoutedEventArgs e ) : void

Handles deleting a list

EditItemButtonClick ( object sender, RoutedEventArgs e ) : void

Launches the UI to edit an item

EditListButtonClick ( object sender, RoutedEventArgs e ) : void

Displays UI to edit a list

ItemListButtonClick ( object sender, RoutedEventArgs e ) : void

Navigates to the item's list

ItemTagButtonClick ( object sender, RoutedEventArgs e ) : void

Event handler for when the user clicks a tag button

Load ( ) : void

Loads the context and binds the data

LoginCompleted ( Exception obj ) : void

Operates once the context model reports that login is completed

MainPage_Loaded ( object sender, RoutedEventArgs e ) : void

Responds to the loaded event so that operations that affect UI don't happen until the page is loaded

NewItemButtonClick ( object sender, RoutedEventArgs e ) : void

Handles launching a UI for creating a new window

NewListButtonClick ( object sender, RoutedEventArgs e ) : void

Called when the button to create a new list is clicked

ShowLoginWindow ( ) : void

Displays the login window

syncButton_Click ( object sender, RoutedEventArgs e ) : void

This method initiates sync

Method Details

LoginWindowClosed() public method

Event handler for when the login window is closed
public LoginWindowClosed ( object sender, EventArgs e ) : void
sender object Sender of the event
e System.EventArgs Event args
return void

MainPage() public method

public MainPage ( ) : System
return System

ModelLoadCompleted() public method

Called when the context is don laoding
public ModelLoadCompleted ( object sender, LoadCompletedEventArgs e ) : void
sender object
e Microsoft.Synchronization.ClientServices.IsolatedStorage.LoadCompletedEventArgs
return void

ModifyItemWindowClosed() public method

Event handler for the modify item window closed event.
public ModifyItemWindowClosed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ModifyListWindowClosed() public method

Called when the new list creation window is closed
public ModifyListWindowClosed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void