private void btnCancel_Click(object sender, EventArgs e) { if (ButtonCancelClick != null) { ButtonCancelClick.Invoke(sender, e); } else { DialogResult = DialogResult.Cancel; IsOK = false; Close(); } }
private void button1_Click(object sender, EventArgs e) { ButtonCancelClick?.Invoke(); }
private void BtnCancel_Click(object sender, EventArgs e) { ButtonCancelClick?.Invoke(sender, e); }