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

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }