private void btnNew_Click(object sender, EventArgs e) { ConfigFormulaDetailH frm = new ConfigFormulaDetailH(); if (frm.ShowDialog() == DialogResult.OK) { LoadData(); } }
private void btnEdit_Click(object sender, EventArgs e) { int id = Lib.ToInt(grvData.GetFocusedRowCellValue(colID)); if (id == 0) { return; } ConfigFormulaModel model = (ConfigFormulaModel)ConfigFormulaBO.Instance.FindByPK(id); ConfigFormulaDetailH frm = new ConfigFormulaDetailH(); frm.formulaModel = model; if (frm.ShowDialog() == DialogResult.OK) { LoadData(); } }