예제 #1
0
 void Configuration_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = this.DataContext as ConfigurationViewModel;
     _vm.SyncStatusInfo = "";
     _vm.CostCentreApplicationId = Guid.Empty;
     _vm.GetApplicationIdCommand.Execute(null);
 }
예제 #2
0
 /// <summary>
 /// Provides a deterministic way to create the ConfigurationViewModel property.
 /// </summary>
 public static void CreateConfigurationViewModel()
 {
     if (_ConfigurationViewModel == null)
     {
         _ConfigurationViewModel = new ConfigurationViewModel();
     }
 }
예제 #3
0
 /// <summary>
 /// Provides a deterministic way to delete the ConfigurationViewModel property.
 /// </summary>
 public static void ClearConfigurationViewModel()
 {
     _ConfigurationViewModel.Cleanup();
     _ConfigurationViewModel = null;
 }