Esempio n. 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmSysSet.frmUserAdd myfrmUserAdd = new frmUserAdd();
     if (myfrmUserAdd.ShowDialog() == DialogResult.OK)
     {
         InitializeControls();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 修改用户信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (this.gridViewMain.SelectedRowsCount <= 0)
     {
         XtraMessageBox.Show("请先选择要修改的项", "操作违规", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         return;
     }
     object[] tempInfo = ClassAssist.CommonOperator.GetGVSelectRowInfo(this.gridViewMain);
     if (tempInfo != null)
     {
         if (new frmCertainPWD(Convert.ToInt32(tempInfo[0])).ShowDialog() != DialogResult.OK)
         {
             return;
         }
         frmUserAdd myfrmUserAdd = new frmUserAdd(tempInfo);
         if (myfrmUserAdd.ShowDialog() == DialogResult.OK)
         {
             InitializeControls();
         }
     }
 }