private void btnManageCustomer_Click(object sender, EventArgs e) { frmUpd_Customers_2 afrmUpd_Customers = new frmUpd_Customers_2(this, this.CurrentIDBookingRoom); afrmUpd_Customers.ShowDialog(); }
private void btnEditCustomer_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (this.IsLockForm == false) { int IDCustomer = Convert.ToInt32(viewCustomers.GetFocusedRowCellValue("ID")); frmUpd_Customers_2 afrmUpd_Customers = new frmUpd_Customers_2(this, this.CurrentIDBookingRoom, IDCustomer); afrmUpd_Customers.ShowDialog(); } else { MessageBox.Show("Không thực hiện được chức năng này do form đang chế độ khóa"); } }