Example #1
0
 private void btnAdd_Click(object sender, System.EventArgs e)
 {
     frmAdd frmAd=new frmAdd();
     frmAd.ShowDialog();
     if(frmAd.m_bInserted==true)
     {
         this.paintFrm();
     }
 }
Example #2
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            frmAdd frmAd = new frmAdd();

            frmAd.ShowDialog();
            if (frmAd.m_bInserted == true)
            {
                this.paintFrm();
            }
        }
Example #3
0
        private void btnEdit_Click(object sender, System.EventArgs e)
        {
            if (this.lsvUsers.SelectedItems.Count == 0)
            {
                MessageBox.Show("请选中要删除的用户!");
                return;
            }
            frmAdd frmAddObj = new frmAdd();

            frmAddObj.m_bEdit     = true;
            frmAddObj.m_strUserID = this.lsvUsers.SelectedItems[0].Text;
            frmAddObj.ShowDialog();
            if (frmAddObj.m_bInserted == true)
            {
                this.paintFrm();
            }
        }
Example #4
0
 private void btnEdit_Click(object sender, System.EventArgs e)
 {
     if(this.lsvUsers.SelectedItems.Count==0)
     {
         MessageBox.Show("��ѡ��Ҫɾ�����û���");
         return;
     }
     frmAdd frmAddObj=new frmAdd();
     frmAddObj.m_bEdit=true;
     frmAddObj.m_strUserID =this.lsvUsers.SelectedItems[0].Text;
     frmAddObj.ShowDialog();
     if(frmAddObj.m_bInserted==true)
     {
         this.paintFrm();
     }
 }