Пример #1
0
        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();
        }
Пример #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     CategoryAdd catA = new CategoryAdd(loggedUser );
     catA.ShowDialog();
     LoadCategories();
 }