public bool CancelSuggestionBox() { ClickCancel.Click(); var item = KendoCommonUtilities.IsModelPopUpClosed(); Console.WriteLine("Clicked on the Cancel Suggestion Button"); return(item); }
private void btnCancel_Click(object sender, EventArgs e) { this.ParentForm.DialogResult = DialogResult.Cancel; ClickCancel?.Invoke(sender, e); if (this.ParentForm.DialogResult == DialogResult.Cancel) { this.ParentForm.Close(); } }
private void btnHuy_Click(object sender, EventArgs e) { ClickCancel.CancelDatPhong(txtTenKH, txtCMT, txtDiaChi, txtSDT, cmbGioiTinh, dtpNgaySinh); }