private void btnThemMoi_Click(object sender, EventArgs e) { frmDetailsTour frm = new frmDetailsTour(); frm.loadData = new frmDetailsTour.LoadData(loadDataGroup); frm.ShowDialog(); }
private void btnClickViews2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var id = int.Parse(gridViewData.GetFocusedRowCellValue("ID").ToString()); var work = bool.Parse(gridViewData.GetFocusedRowCellValue("IsCancel").ToString()) == true ? 2 : 1; frmDetailsTour frm = new frmDetailsTour(work, id); frm.loadData = new frmDetailsTour.LoadData(loadDataGroup); frm.ShowDialog(); }
private void btnClickViews_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var id = int.Parse(gridViewData.GetFocusedRowCellValue("ID").ToString()); int work = rdBinhThuong.Checked == true ? 1 : 2; frmDetailsTour frm = new frmDetailsTour(work, id); frm.loadData = new frmDetailsTour.LoadData(loadDataGroup); frm.ShowDialog(); }
private void btnClickEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { int id = int.Parse(gridViewData.GetFocusedRowCellValue("ID").ToString()); frmDetailsTour frm = new frmDetailsTour(1, id); frm.loadData = new frmDetailsTour.LoadData(loadDataGroup); frm.ShowDialog(); } catch { } }