Пример #1
0
 public override void LoadSettingsFromStorage()
 {
     base.LoadSettingsFromStorage();
     try
     {
         Core = HelperFunctions.LoadTagsFromFile(localPath + "xen.xml") ?? new OptionsCore();
     }
     catch (Exception)
     {
         //Core = new OptionsCore();
     }
     finally
     {
         dialog._OptionsCore = Core;
     }
 }
Пример #2
0
        private void SAOptionsDialog_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                if (_OptionsCore == null)
                {
                    _OptionsCore = new OptionsCore();
                }

                pg.SelectedObject = _OptionsCore;
            }
            catch (Exception)
            {
                _OptionsCore      = new OptionsCore();
                pg.SelectedObject = _OptionsCore;
            }
        }
Пример #3
0
 public override void SaveSettingsToStorage()
 {
     Core = dialog._OptionsCore;
     HelperFunctions.SaveTagsToFile(localPath + "xen.xml", Core);
     base.SaveSettingsToStorage();
 }