C# Class OS2Indberetning.ViewModel.CouplingViewModel

Viewmodel of the Coupling page. Handles all view logic
Inheritance: XLabs.Forms.Mvvm.ViewModel, INotifyPropertyChanged, IDisposable
显示文件 Open project: os2indberetning/OS2_Windows_Phone

Public Methods

Method Description
CouplingViewModel ( ) : System

Constructor that handles initialization of the viewmodel

Dispose ( ) : void

Method that handles cleanup of the viewmodel

InitVm ( Municipality m ) : void

Method is used a a constructor, because the constructor needs to be parameterless

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
Couple ( UserInfoModel user ) : bool

Method that handles saving the user information if everything is OK

HandleCoupleMessage ( ) : void

Method that handles the couple message from the page

Subscribe ( ) : void

Method that handles subscribing to the needed messages

Unsubscribe ( ) : void

Method that handles unsubscribing Important this is called upon popping of the page

Method Details

CouplingViewModel() public method

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

Dispose() public method

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

InitVm() public method

Method is used a a constructor, because the constructor needs to be parameterless
public InitVm ( Municipality m ) : void
m OS2Indberetning.Model.Municipality
return void

OnPropertyChanged() protected method

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