Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     WpfFunc.StoreWnd(this, "Notify");
 }
Ejemplo n.º 4
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     WpfFunc.StoreWnd(this, "Rule");
 }
Ejemplo n.º 5
0
        public void HideWnd()
        {
            WpfFunc.StoreWnd(this, "Notify");

            Hide();
        }
Ejemplo n.º 6
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     WpfFunc.StoreWnd(this, "Notify");
     App.SetConfig("GUI", "consGrid_Columns", consGridExt.Save());
 }