public override void LoadSettingsFromStorage() { base.LoadSettingsFromStorage(); try { Core = HelperFunctions.LoadTagsFromFile(localPath + "xen.xml") ?? new OptionsCore(); } catch (Exception) { //Core = new OptionsCore(); } finally { dialog._OptionsCore = Core; } }
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; } }
public override void SaveSettingsToStorage() { Core = dialog._OptionsCore; HelperFunctions.SaveTagsToFile(localPath + "xen.xml", Core); base.SaveSettingsToStorage(); }