Esempio n. 1
0
        private void btnInv_Click(object sender, EventArgs e)
        {
            if (!loggedIn())
            {
                return;
            }

            //if (!loggedUser.access(Convert.ToInt16(btnInv.Tag)))
            //{
            //    return;
            //}
            InventoryView inv = new InventoryView(loggedUser);

            inv.ShowDialog();
        }
Esempio n. 2
0
        private void viewToolStripMenuItem3_Click(object sender, EventArgs e)
        {
            if (!loggedIn())
            {
                return;
            }
            if (!loggedUser.access(Convert.ToInt16(viewToolStripMenuItem3.Tag)))
            {
                return;
            }

            InventoryView inv = new InventoryView(loggedUser);

            inv.ShowDialog();
        }
Esempio n. 3
0
 private void btnStock_Click(object sender, EventArgs e)
 {
     if (!loggedUser.access(Convert.ToInt16(btnAdd.Tag)))
     {
         return;
     }
     this.Close();
     this.Dispose();
     InventoryView inv = new InventoryView(loggedUser);
     inv.ShowDialog();
 }