示例#1
0
 public void SaveConfiguration()
 {
     Helper.SetDirectory();
     Locale.Save();
     SaveAction?.Invoke();
     GuiEnvironment.Save();
     XmlSerialize("MainWindow.xml");
 }
示例#2
0
文件: Splash.cs 项目: radtek/datawf
 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();
     }
 }