Ejemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmConfigFormulaAllDetailH frm = new frmConfigFormulaAllDetailH();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = Lib.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            ConfigFormulaAllModel      model = (ConfigFormulaAllModel)ConfigFormulaAllBO.Instance.FindByPK(id);
            frmConfigFormulaAllDetailH frm   = new frmConfigFormulaAllDetailH();

            frm.formulaModel = model;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }