Esempio n. 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            string         id             = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdUser, BaseUserEntity.FieldId);
            FrmAccountEdit frmAccountEdit = new FrmAccountEdit(id);

            if (frmAccountEdit.ShowDialog(this) == DialogResult.OK)
            {
                // 获得用户列表
                this.DoSearch();
            }
        }
Esempio n. 2
0
        public void Edit()
        {
            FrmAccountEdit frmUserEdit = new FrmAccountEdit(this.EntityId);

            // FrmUserEdit frmUserEdit = new FrmUserEdit(this.EntityId);
            if (frmUserEdit.ShowDialog(this) == DialogResult.OK)
            {
                // 记录当前选中的主键
                this.CurrentEntityId = frmUserEdit.EntityId;
                // 加载窗体
                this.FormOnLoad();
            }
        }