Esempio n. 1
0
        // view meals
        private void btnMeals_Click(object sender, EventArgs e)
        {
            //int perm = 99;

            if (!loggedIn())
            {
                return;
            }
            MealView viewMeal = new MealView(loggedUser);
            //loggedUser.PermLevel;
            viewMeal.ShowDialog();
        }
Esempio n. 2
0
        private void viewToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!loggedIn())
            {
                return;
            }
            if (!loggedUser.access(Convert.ToInt16(viewToolStripMenuItem1.Tag)))
            {
                return;
            }
            MealView viewMeal = new MealView(loggedUser);

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