예제 #1
0
 public MainWindow()
 {
     SetFile.ImportFile();// 导入保存的设置
     InitializeComponent();
     //注册事件
     opertitionMessageEvent += opertition;
     showPageEvent          += timerHandlerFun;
     themeEvent             += themeFuna;
 }
예제 #2
0
        private void Window_Closed(object sender, EventArgs e)
        {
            ConfigXmlPassage xml = new ConfigXmlPassage(Configure.Config.ConfigXmlPath);

            if (Status.isDark)
            {
                xml.SetTheme(Xml.XmlContext.Theme.Dark);
            }
            else
            {
                xml.SetTheme(Xml.XmlContext.Theme.Light);
            }

            Data.AddAppLog("application close");
            if (Setting.AutoExportLog)
            {
                ShowLogWindow.ExportFile();
            }
            SetFile.ExportFile();
            Process.GetCurrentProcess().Kill();
        }