private void btnAdd_Click(object sender, EventArgs e) { if (!loggedUser.access(Convert.ToInt16(btnAdd.Tag))) { return; } UserAdd add = new UserAdd(loggedUser); add.ShowDialog(); }
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(); }