private void btnDelete_Click(object sender, EventArgs e) { int rowIndex = userGrid.CurrentCell.RowIndex; userImp u = new userImp(); u.UserDelete(sList[rowIndex].Id); getUserList(); }
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(); } }
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(); }