private void btnAddFood_Click(object sender, System.EventArgs e) { frmIns_Menus afrmIns_Menus = new frmIns_Menus(this,this.CurrentIDBookingHall,1); afrmIns_Menus.ShowDialog(); }
private void simpleButton1_Click(object sender, EventArgs e) { frmIns_Menus afrmIns_Menus = new frmIns_Menus(this, 1); //type=1:thuc don mau afrmIns_Menus.ShowDialog(); }
private void btnCreateMenu_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int IDBookingHall = Convert.ToInt32(grvHaveNotMenus.GetFocusedRowCellValue("IDBookingHall")); frmIns_Menus afrmIns_Menus = new frmIns_Menus(this, IDBookingHall, 2); afrmIns_Menus.ShowDialog(); }
private void barButtonItem28_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmIns_Menus afrmIns_Menus = new frmIns_Menus(1);//type=1:thực đơn thông dụng afrmIns_Menus.ShowDialog(); }
//hiennv private void btnCreateMenu_ButtonClick(object sender, ButtonPressedEventArgs e) { try { int IDBookingHall = Convert.ToInt32(viewBookingHalls.GetFocusedRowCellValue("IDBookingHall")); frmIns_Menus afrmIns_Menus = new frmIns_Menus(this, IDBookingHall,2);//type=2 :thuc don moi afrmIns_Menus.Show(); } catch (Exception ex) { MessageBox.Show("frmTsk_SearchBookingHalls.btnCreateMenu_ButtonClick\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnCreateMenu_Click(object sender, EventArgs e) { frmIns_Menus afrmIns_Menus = new frmIns_Menus(this, 2, this.IDBookingHall); afrmIns_Menus.ShowDialog(); }