private void Application_Startup(object sender, StartupEventArgs e) { path = AppDomain.CurrentDomain.BaseDirectory; _ = new DatabaseOperation(); _ = new DdlOperation(); _ = new SettingOperation(); _ = new FlowWindowOperation(); RemoveIcon(); AddIcon(); this.DispatcherUnhandledException += new DispatcherUnhandledExceptionEventHandler(AppDispatcherUnhandledException); dt.Interval = new TimeSpan(0, 0, 1); dt.Start(); FlowWindowOperation.ShowAllFlowWindowEvent(sender, e); if (SettingOperation.firstTime) { OpenInfoPage(); } else { OpenDdlPage(); } }
private void CloseDdlm() { RemoveIcon(); FlowWindowOperation.SaveFlowWindows(); Shutdown(); }