protected void btnOK_Click(object sender, EventArgs e) { if (!CheckData()) { return; } if (ButtonOkClick != null) { ButtonOkClick.Invoke(sender, e); } else { DialogResult = DialogResult.OK; IsOK = true; Close(); } }
private void BtnOk_Click(object sender, EventArgs e) { ButtonOkClick?.Invoke(sender, e); }