private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { WpfFunc.StoreWnd(this, "Main"); foreach (IUserPage page in mPages.Values) { if (page != null) { page.OnClose(); } } if (App.mTray.Visible) { e.Cancel = true; this.Hide(); } }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { WpfFunc.StoreWnd(this, "Main"); foreach (var page in mPages.Values) { if (page.ctrl != null) { (page.ctrl as IUserPage).OnClose(); } } if (notificationWnd != null) { notificationWnd.CloseWnd(); } if (App.TrayIcon.Visible) { e.Cancel = true; this.Hide(); } }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { WpfFunc.StoreWnd(this, "Notify"); }
private void Window_Closing(object sender, CancelEventArgs e) { WpfFunc.StoreWnd(this, "Rule"); }
public void HideWnd() { WpfFunc.StoreWnd(this, "Notify"); Hide(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { WpfFunc.StoreWnd(this, "Notify"); App.SetConfig("GUI", "consGrid_Columns", consGridExt.Save()); }