AvalonGUIConfig.ConfigurationForm.btSave_Click C# (CSharp) Метод

btSave_Click() приватный Метод

private btSave_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        void btSave_Click(object sender, EventArgs e)
        {
            // get current settings and save to file
            AvalonGUIConfig.checkOnStart = cbCheckOnStart.Checked;
            AvalonGUIConfig.checkForUpdateAt = cbCheckForUpdateAt.Checked;
            AvalonGUIConfig.checkInterval = comboCheckInterval.SelectedIndex;
            AvalonGUIConfig.checkTime = timePicker.Value;
            AvalonGUIConfig.nextUpdateCheck = AvalonGUIConfig.nextCheckAt.ToString();
            AvalonGUIConfig.patchUtilityRunUnattended = cbRunUnattended.Checked;
            AvalonGUIConfig.patchUtilityRestartMP = cbRestartMP.Checked;

            settings.Save(settings.cXMLSectionUpdate);

            this.Close();
        }