Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     WpfFunc.StoreWnd(this, "Notify");
 }
Пример #4
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     WpfFunc.StoreWnd(this, "Rule");
 }
Пример #5
0
        public void HideWnd()
        {
            WpfFunc.StoreWnd(this, "Notify");

            Hide();
        }
Пример #6
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     WpfFunc.StoreWnd(this, "Notify");
     App.SetConfig("GUI", "consGrid_Columns", consGridExt.Save());
 }