Пример #1
0
        private void Edit(object sender, System.EventArgs e)
        {
            #region 编辑业务数据

            var eq = EqList[sGrid.CurrentRow.Index];

            FmEquipment frm = new FmEquipment(eq.EQId);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                EqList = dal.GetList(strWheres, paramList);
                this.UIRefresh();
            }
            #endregion
        }
Пример #2
0
        private void Add(object sender, System.EventArgs e)
        {
            #region 新增业务数据

            EquipmentClass modelC = null;

            if (TreeM.SelectedNode != null)
            {
                var node = TreeM.SelectedNode;

                modelC = node.Tag as EquipmentClass;
            }

            FmEquipment frm = new FmEquipment(modelC);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                EqList = dal.GetList(strWheres, paramList);
                UIRefresh();
            }

            #endregion
        }