예제 #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     int rowIndex = userGrid.CurrentCell.RowIndex;
     userImp u = new userImp();
     u.UserDelete(sList[rowIndex].Id);
     getUserList();
 }
예제 #2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (userID == 0)
     {
         userImp u = new userImp();
         u.UserInsert(name.Text, gender.Text, age.Text, address.Text, uname.Text, pass.Text);
         getUserList();
     }
 }
예제 #3
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     userImp u = new userImp();
     u.UserUpdate(userID, name.Text, gender.Text, age.Text, address.Text, uname.Text, pass.Text);
     getUserList();
 }