예제 #1
0
 /// <summary>Registers the view model for state handling. </summary>
 /// <param name="viewModel">The view model. </param>
 /// <param name="page">The page. </param>
 public static void RegisterViewModelForStateHandling(IStateHandlingViewModel viewModel, MtPage page)
 {
     page.PageStateHandler.SaveState += (sender, args) => viewModel.OnSaveState(args);
     page.PageStateHandler.LoadState += (sender, args) => viewModel.OnLoadState(args);
 }
예제 #2
0
 /// <summary>Registers the view model for state handling. </summary>
 /// <param name="viewModel">The view model. </param>
 public void RegisterViewModelForStateHandling(IStateHandlingViewModel viewModel)
 {
     ViewModelHelper.RegisterViewModelForStateHandling(viewModel, this);
 }
예제 #3
0
 /// <summary>Registers the view model for state handling. </summary>
 /// <param name="viewModel">The view model. </param>
 public void RegisterViewModelForStateHandling(IStateHandlingViewModel viewModel)
 {
     ViewModelHelper.RegisterViewModelForStateHandling(viewModel, this);
 }
예제 #4
0
 /// <summary>Registers the view model for state handling. </summary>
 /// <param name="viewModel">The view model. </param>
 /// <param name="page">The page. </param>
 public static void RegisterViewModelForStateHandling(IStateHandlingViewModel viewModel, MtPage page)
 {
     page.PageStateHandler.SaveState += (sender, args) => viewModel.OnSaveState(args);
     page.PageStateHandler.LoadState += (sender, args) => viewModel.OnLoadState(args);
 }