private void btnNew_Click(object sender, EventArgs e) { frmShowStaff frm = new frmShowStaff(); frm.LoadDataChange += main_LoadDataChange; frm.Show(); }
private void btnNew_Click(object sender, EventArgs e) { frmShowStaff frm = new frmShowStaff(); if (frm.ShowDialog() == DialogResult.OK) { loadGrid(); } }
private void btnEdit_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } _rownIndex = grvData.FocusedRowHandle; UsersModel model = (UsersModel)UsersBO.Instance.FindByPK(id); frmShowStaff frm = new frmShowStaff(); frm.Model = model; frm.LoadDataChange += main_LoadDataChange; frm.Show(); }
private void btnEdit_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } _rownIndex = grvData.FocusedRowHandle; UsersModel model = (UsersModel)UsersBO.Instance.FindByPK(id); frmShowStaff frm = new frmShowStaff(); frm.Model = model; if (frm.ShowDialog() == DialogResult.OK) { loadGrid(); } }