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
0
1. Example
Project: EnrollmentStation
Source File: DlgSettings.cs
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; }
0
2. Example
Project: Nexus-Mod-Manager
Source File: ModPackagingForm.cs
Source File: ModPackagingForm.cs
private void ToolStripButton_Click(object sender, EventArgs e) { this.ValidateChildren(); }
0
3. Example
Project: screencast-capture
Source File: OptionForm.cs
Source File: OptionForm.cs
private void cbFont_SelectedIndexChanged(object sender, EventArgs e) { ValidateChildren(); }
0
4. Example
Project: CM3D2.MaidFiddler
Source File: SettingsGUI.cs
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(); }
0
5. Example
Project: PKMN-NTR
Source File: MainForm.cs
Source File: MainForm.cs
public PKM preparePKM(bool click = true) { if (click) ValidateChildren(); PKM pk = getPKMfromFields(); return pk?.Clone(); }
0
6. Example
Project: Pass4Win
Source File: config.cs
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; }
0
7. Example
Project: JabberNet-2010
Source File: OptionForm.cs
Source File: OptionForm.cs
private void btnOK_Click(object sender, EventArgs e) { if (!this.ValidateChildren()) return; WriteXmpp(); this.DialogResult = DialogResult.OK; this.Close(); }