public override void Create() { AppState.state = Actions.ADD; var dialog = new frmPhieuDatChoEditing(); DialogResult res = dialog.ShowDialog(); if (res == DialogResult.OK) { int newMave = BLL_IdenMaVe.GetNewMaVe(); if (BLL_PhieuDatCho.InsertPhieuDatCho(dialog.pdc, newMave)) { Notification.Show("Thêm phiếu đặt chỗ thành công", Status.SUCCESS); BLL_IdenMaVe.ClearIden(); } reloadData(); } AppState.state = Actions.NOTHING; }
public override void Create() { AppState.state = Actions.ADD; var dialog = new frmVeEditing(); DialogResult res = dialog.ShowDialog(); if (res == DialogResult.OK) { int newMave = BLL_IdenMaVe.GetNewMaVe(); if (BLL_Ve.InsertVe(dialog.ve, newMave)) { Notification.Show("Bán vé thành công", Status.SUCCESS); BLL_IdenMaVe.ClearIden(); } reloadData(); } AppState.state = Actions.NOTHING; }