private void SetSyncApp_Loaded(object sender, RoutedEventArgs e)
        {
            if (_vm == null)
                _vm = DataContext as GeneralSettingsViewModel;

            _vm.LoadCurrentAppsCommand.Execute(null);
            _vm.DoLoadSyncSettings();

        }
 void GeneralSettings_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = this.DataContext as GeneralSettingsViewModel;
     _vm.SetUp();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Provides a deterministic way to create the GeneralSettingsViewModel property.
 /// </summary>
 public static void CreateGeneralSettingsViewModel()
 {
     if (_GeneralSettingsViewModel == null)
     {
         _GeneralSettingsViewModel = new GeneralSettingsViewModel();
     }
 }
 public DistributrSyncSettings()
 {
     InitializeComponent();
     _vm = DataContext as GeneralSettingsViewModel;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Provides a deterministic way to delete the GeneralSettingsViewModel property.
 /// </summary>
 public static void ClearGeneralSettingsViewModel()
 {
     _GeneralSettingsViewModel.Cleanup();
     _GeneralSettingsViewModel = null;
 }