private void btnDone_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { BookingHsBO aBookingHsBO = new BookingHsBO(); int IDBookingH = Convert.ToInt32(grvBookingHs.GetFocusedRowCellValue("ID")); frmTsk_ListBookingHs afrmTsk_ListBookingHs = new frmTsk_ListBookingHs(this, IDBookingH); afrmTsk_ListBookingHs.ShowDialog(); } catch (Exception ex) { MessageBox.Show("frmTsk_ManageBookingHs.btnDone_ButtonClick \n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void barButtonItem12_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmTsk_ListBookingHs afrmTsk_ListBookingHs = new frmTsk_ListBookingHs(); afrmTsk_ListBookingHs.ShowDialog(); }