Exemple #1
0
        private void StarterForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            splashScreen.Close();
            abortRequested = true;

            if (WindowState != FormWindowState.Minimized)
            {
                Settings.Default.StarterFormWindowState = WindowState;
            }
            if (WindowState != FormWindowState.Normal)
            {
                Settings.Default.StarterFormLocation = RestoreBounds.Location;
                Settings.Default.StarterFormSize     = RestoreBounds.Size;
            }
            else if (WindowState == FormWindowState.Normal)
            {
                Settings.Default.StarterFormLocation = Location;
                Settings.Default.StarterFormSize     = Size;
            }

            Settings.Default.Save();
        }
 private void StarterForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     splashScreen.Close();
     abortRequested = true;
 }