Esempio n. 1
0
        private void UserAdd_Load(object sender, EventArgs e)
        {
            initData();
            UsersBLL userbll = new UsersBLL();

            dgwusermanagment.DataSource = userbll.GetALl();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 private void Usermanagment_Load(object sender, EventArgs e)
 {
     dgvusermanagment.DataSource = userbll.GetALl();
 }