C# Class OS2Indberetning.ViewModel.LoginViewModel

Viewmodel to the Login page. Setups the list for display in the page and handles pushing to the couple page with the correct model
Inheritance: XLabs.Forms.Mvvm.ViewModel, INotifyPropertyChanged, IDisposable
ファイルを表示 Open project: os2indberetning/OS2_Windows_Phone

Public Methods

Method Description
Dispose ( ) : void

Method that handles cleanup of the viewmodel

LoginViewModel ( ) : System

Constructor that handles initialization of the viewmodel

OnSelectedItem ( MunCellModel selectedItem ) : void

Method called from the page when an item is Selected. It pushes a coupling page initialized to the Selected Municipality. Used instead of messagingcenter

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
CallApi ( ) : void

Method that handles the call to API service and directs the result

HandleRefreshMessage ( ) : void

Method that handles the call to API service and directs the result

InitList ( List resultList ) : void

Method that initializes the Municipality list

Subscribe ( ) : void

Method that handles subscribing to the needed messages

Unsubscribe ( ) : void

Method that handles unsubscribing

Method Details

Dispose() public method

Method that handles cleanup of the viewmodel
public Dispose ( ) : void
return void

LoginViewModel() public method

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

OnPropertyChanged() protected method

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

OnSelectedItem() public method

Method called from the page when an item is Selected. It pushes a coupling page initialized to the Selected Municipality. Used instead of messagingcenter
public OnSelectedItem ( MunCellModel selectedItem ) : void
selectedItem OS2Indberetning.Model.MunCellModel
return void