private void addToolStripMenuItem_Click(object sender, EventArgs e) { if (!loggedIn()) { return; } if (!loggedUser.access(Convert.ToInt16(addToolStripMenuItem.Tag))) { return; } CategoryAdd catA = new CategoryAdd(loggedUser); catA.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { CategoryAdd catA = new CategoryAdd(loggedUser ); catA.ShowDialog(); LoadCategories(); }