private void btnOK_Click(object sender, EventArgs e) { this.ParentForm.DialogResult = DialogResult.OK; ClickOK?.Invoke(sender, e); if (this.ParentForm.DialogResult == DialogResult.OK) { this.ParentForm.Close(); } }
private void btnApply_Click(object sender, EventArgs e) { ClickOK?.Invoke(sender, e); }