private void btnThemMoi_Click(object sender, EventArgs e) { frmActionUser frm = new frmActionUser(); frm.loadData = new frmActionUser.LoadData(loadDataGroup); frm.ShowDialog(); }
private void btnClickEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int id = int.Parse(gridViewData.GetFocusedRowCellValue("ID").ToString()); frmActionUser frm = new frmActionUser(1, id); frm.loadData = new frmActionUser.LoadData(loadDataGroup); frm.ShowDialog(); }