Beispiel #1
0
        protected override void OnAddData()
        {
            base.OnAddData();

            EditMan edit = new EditMan();

            edit.id         = String.Empty;
            edit.parentForm = this;

            if (edit.ShowDialog() == DialogResult.OK)
            {
            }
        }
Beispiel #2
0
        protected override void OnEditData()
        {
            base.OnEditData();

            if (dgvList.SelectedRows.Count != 1)
            {
                Global.ShowSysInfo("请选择需要修改的数据行!");
                return;
            }

            EditMan edit = new EditMan();

            edit.id         = dgvList.SelectedRows[0].Cells["Man_ID"].Value.ToString();
            edit.parentForm = this;

            if (edit.ShowDialog() == DialogResult.OK)
            {
            }
        }