// 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(); }
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(); }
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(); }