Ejemplo n.º 1
0
        private void WelcomeScreenForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            keeper.FileSave();
            if (this.WindowState == FormWindowState.Normal)
            {
                Parameters.MainWindowLeft   = this.Left;
                Parameters.MainWindowTop    = this.Top;
                Parameters.MainWindowHeight = this.Height;
                Parameters.MainWindowWidth  = this.Width;
            }
            else
            {
                Parameters.MainWindowLeft   = this.RestoreBounds.Left;
                Parameters.MainWindowTop    = this.RestoreBounds.Top;
                Parameters.MainWindowHeight = this.RestoreBounds.Height;
                Parameters.MainWindowWidth  = this.RestoreBounds.Width;
            }
            Parameters.MainWindowMaximized = (this.WindowState == FormWindowState.Maximized);

            Parameters.Save();
        }