private void btnComplete_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } UpdateSoftwareModel model = (UpdateSoftwareModel)UpdateSoftwareBO.Instance.FindByPK(id); model.Complete = true; UpdateSoftwareBO.Instance.Update(model); grvData.SetFocusedRowCellValue(colComplete, true); }
private void btnSua_Click(object sender, EventArgs e) { long id = TextUtils.ToInt64(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } UpdateSoftwareModel model = (UpdateSoftwareModel)UpdateSoftwareBO.Instance.FindByPK(id); _rownIndex = grvData.FocusedRowHandle; frmErrorAndFeature frm = new frmErrorAndFeature(); frm.UpdateSoftware = model; frm.LoadDataChange += main_LoadDataChange; frm.Show(); }
protected UpdateSoftwareFacade(UpdateSoftwareModel model) : base(model) { }