/// <summary>新增用户</summary> private void btnAdd_Click(object sender, EventArgs e) { frmMember objfrmMember = new frmMember(); if (objfrmMember.ShowDialog() == DialogResult.OK) { this.LoadMemberList(); } }
private void ShowMember() { if (this.dgvMember.CurrentRow != null) { string strMemberId = this.dgvMember.CurrentRow.Cells[0].Value.ToString(); frmMember objfrmMember = new frmMember(strMemberId); if (objfrmMember.ShowDialog() == DialogResult.OK) { this.LoadMemberList(); } } }
private void ShowMember() { if (this.dgvMember.CurrentRow != null) { string strMemberId = this.dgvMember.CurrentRow.Cells["UID"].Value.ToString(); if (strMemberId != "Administrator" || Login.LoginUser.IsAdmin == 1) { frmMember objfrmMember = new frmMember(strMemberId); if (objfrmMember.ShowDialog() == DialogResult.OK) { this.LoadMemberList(); } } } }