Exemple #1
0
 public void SaveConfiguration()
 {
     Helper.SetDirectory();
     Locale.Save();
     SaveAction?.Invoke();
     GuiEnvironment.Save();
     XmlSerialize("MainWindow.xml");
 }
Exemple #2
0
 public virtual void LoadConfiguration()
 {
     Helper.SetDirectory();
     try
     {
         Locale.Load();
         LoadAction?.Invoke();
         GuiEnvironment.Load();
     }
     catch (Exception ex)
     {
         Helper.OnException(ex);
         DialogResult = Command.Stop;
     }
     finally
     {
         Helper.SetDirectory();
         OnInitialized();
     }
 }