Exemplo n.º 1
0
        private void MyOnClosing(object o, System.ComponentModel.CancelEventArgs e)
        {
            if (this.WindowState != FormWindowState.Minimized)
            {
                m_config.SetValue("imagewindow_maximised", (this.WindowState == FormWindowState.Minimized).ToString());
                m_config.SetValue("imagewindow_xpos", this.Location.X.ToString());
                m_config.SetValue("imagewindow_ypos", this.Location.Y.ToString());
                m_config.SetValue("imagewindow_width", this.Size.Width.ToString());
                m_config.SetValue("imagewindow_height", this.Size.Height.ToString());
            }

            m_windowManager.ClosingImageWindow(this);
        }