Пример #1
0
        /// <summary>
        /// 新增
        /// </summary>
        protected override void New()
        {
            frmEditDeviceRepair myEditDeviceRepair = new frmEditDeviceRepair();

            myEditDeviceRepair.New();
            if (myEditDeviceRepair.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditDeviceRepair.Dispose();
            base.New();
        }
Пример #2
0
        /// <summary>
        /// 编辑  
        /// </summary>
        protected override void Edit()
        {
            if (gvList.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow             dr = gvList.GetDataRow(gvList.FocusedRowHandle);
            frmEditDeviceRepair myEditDeviceRepair = new frmEditDeviceRepair();

            myEditDeviceRepair.Edit(dr["Aid"].ToString());
            if (myEditDeviceRepair.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditDeviceRepair.Dispose();
        }