System.Windows.Forms.Form.ValidateChildren()

Here are the examples of the csharp api class System.Windows.Forms.Form.ValidateChildren() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

7 Examples 7

1. Example

Project: EnrollmentStation
Source File: DlgSettings.cs
private void btnSave_Click(object sender, EventArgs e)
        {
            if (!ValidateChildren())
                return;

            _settings.CSREndpoint = txtCSREndpoint.Text;
            _settings.EnrollmentAgentCertificate = _selectedCertificateThumb;
            _settings.EnrollmentManagementKey = Utilities.StringToByteArray(txtManagementKey.Text);
            _settings.EnrollmentCaTemplate = txtCaTemplate.Text;
            _settings.DefaultAlgorithm = ((YubikeyAlgorithm)drpAlgorithm.SelectedItem).Value;

            _settings.Save(MainForm.FileSettings);

            DialogResult = DialogResult.OK;
        }

2. Example

Project: Nexus-Mod-Manager
Source File: ModPackagingForm.cs
private void ToolStripButton_Click(object sender, EventArgs e)
		{
			this.ValidateChildren();
		}

3. Example

Project: screencast-capture
Source File: OptionForm.cs
private void cbFont_SelectedIndexChanged(object sender, EventArgs e)
        {
            ValidateChildren();
        }

4. Example

Project: CM3D2.MaidFiddler
Source File: SettingsGUI.cs
private void OnApplyClicked(object sender, EventArgs e)
        {
            if (!ValidateChildren())
                return;

            plugin.CFGStartGUIKey = EnumHelper.ParseEnums<KeyCode>(textBox_key.Text, '+');
            plugin.CFGUseJapaneseNameStyle = comboBox_name_style.SelectedIndex == 1;
            plugin.CFGOrderStyle =
            listBox_order_selected.Items.Cast<MaidOrderStyleData>().Select(data => data.OrderStyle).ToList();
            plugin.CFGOrderDirection = (MaidOrderDirection) (comboBox_order_direction.SelectedIndex * 2 - 1);

            Close();
        }

5. Example

Project: PKMN-NTR
Source File: MainForm.cs
public PKM preparePKM(bool click = true)
        {
            if (click)
                ValidateChildren();

            PKM pk = getPKMfromFields();
            return pk?.Clone();
        }

6. Example

Project: Pass4Win
Source File: config.cs
private void FrmConfigFormClosing(object sender, FormClosingEventArgs e)
        {
            if ( (this.valCancel = _config["FirstRun"]) )
                if (!ValidateChildren()) e.Cancel = true;
                OnSendOffline(null);
                this.valCancel = false;
        }

7. Example

Project: JabberNet-2010
Source File: OptionForm.cs
private void btnOK_Click(object sender, EventArgs e)
        {
            if (!this.ValidateChildren())
                return;

            WriteXmpp();

            this.DialogResult = DialogResult.OK;
            this.Close();
        }