コード例 #1
0
        /// <summary>新增用户</summary>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmMember objfrmMember = new frmMember();

            if (objfrmMember.ShowDialog() == DialogResult.OK)
            {
                this.LoadMemberList();
            }
        }
コード例 #2
0
 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();
         }
     }
 }
コード例 #3
0
 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();
             }
         }
     }
 }