Exemple #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (!loggedUser.access(Convert.ToInt16(btnAdd.Tag)))
     {
         return;
     }
     UserAdd add = new UserAdd(loggedUser);
     add.ShowDialog();
 }
Exemple #2
0
        private void addToolStripMenuItem5_Click(object sender, EventArgs e)
        {
            if (!loggedIn())
            {
                return;
            }
            if (!loggedUser.access(Convert.ToInt16(addToolStripMenuItem5.Tag)))
            {
                return;
            }

            UserAdd user = new UserAdd(loggedUser);

            user.ShowDialog();
        }