private void UserAdd_Load(object sender, EventArgs e) { initData(); UsersBLL userbll = new UsersBLL(); dgwusermanagment.DataSource = userbll.GetALl(); }
private void btndelete_Click(object sender, EventArgs e) { int var = int.Parse(txtid.Text); UsersBLL userbll = new UsersBLL(); userbll.Remove(var); dgwusermanagment.DataSource = userbll.GetALl(); }
private void btnsave_Click(object sender, EventArgs e) { var var = (Role)cbrole.SelectedItem; var role1 = (Role)cbrole.SelectedItem; usersBLL.Add(new BO.User() { role = var, UserName = txtusername.Text, Password = txtpassword.Text, ExpireDate = dtpdate.Value }); dgwusermanagment.DataSource = usersBLL.GetALl(); }
private void Usermanagment_Load(object sender, EventArgs e) { dgvusermanagment.DataSource = userbll.GetALl(); }