Beispiel #1
0
        protected override void OnFormClosing(FormClosingEventArgs i_E)
        {
            base.OnFormClosing(i_E);
            if (checkBoxRememberMe.Enabled && checkBoxRememberMe.Checked)
            {
                ConnectManager.Settings.LastWindowLocation = Location;
                ConnectManager.Settings.LastWindowSize     = Size;
                ConnectManager.Settings.RememberMe         = checkBoxRememberMe.Checked;
            }
            else
            {
                ConnectManager.Settings.AccessToken = null;
                ConnectManager.Settings.RememberMe  = false;
            }

            ConnectManager.SaveSettings();
        }