C# Class OS2Indberetning.ViewModel.MainViewModel

Viewmodel of the Main page. Handles all view logic
Inheritance: XLabs.Forms.Mvvm.ViewModel, INotifyPropertyChanged
Mostrar archivo Open project: os2indberetning/OS2_Windows_Phone

Public Methods

Method Description
MainViewModel ( ) : System

Constructor that handles initialization of the viewmodel

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
CheckLoginStatus ( ) : void
HandleLogoutMessage ( ) : void

Method that handles the Logout message

HandleSelectedMessage ( System.MainPage sender ) : void

Method that handles the Selected message

InitializeCollection ( ) : void

Method that handles initialization of the observerable collection

Subscribe ( ) : void

Method that handles subscribing to the needed messages

Unsubscribe ( ) : void

Method that handles unsubscribing Since this page is only created once, we dont unsubscribe

Method Details

MainViewModel() public method

Constructor that handles initialization of the viewmodel
public MainViewModel ( ) : System
return System

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void