private void btnAdduser_Click(object sender, EventArgs e) { Adduser_Form addnewuser = new Adduser_Form(); addnewuser.btnadduser.Text = "Save User"; addnewuser.ShowDialog(); dgvGetAllusers.DataSource = log.SearchUsers(""); }
private void btnmodifyuser_Click(object sender, EventArgs e) { Adduser_Form addnewuser = new Adduser_Form(); addnewuser.txtuserid.Text = dgvGetAllusers.CurrentRow.Cells[0].Value.ToString(); addnewuser.txtuserpass.Text = dgvGetAllusers.CurrentRow.Cells[1].Value.ToString(); addnewuser.txtuserpassconfirm.Text = dgvGetAllusers.CurrentRow.Cells[1].Value.ToString(); addnewuser.comboxusertype.Text = dgvGetAllusers.CurrentRow.Cells[2].Value.ToString(); addnewuser.txtusername.Text = dgvGetAllusers.CurrentRow.Cells[3].Value.ToString(); addnewuser.btnadduser.Text = "Modify User"; addnewuser.state = "update"; addnewuser.ShowDialog(); dgvGetAllusers.DataSource = log.SearchUsers(""); }
private void addNewUserfrm_Click(object sender, EventArgs e) { Adduser_Form adduserfrm = new Adduser_Form(); adduserfrm.ShowDialog(); }