Exemplo n.º 1
0
        private void btnAddNewFoods2_Click(object sender, EventArgs e)
        {
            AddNewFood addFood = AddNewFood.getInstance();

            this.Hide();
            addFood.Show();
        }
Exemplo n.º 2
0
 public static AddNewFood getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new AddNewFood();
     }
     return(uniqueInstance);
 }
Exemplo n.º 3
0
        private void btnEditfoodCard_Click(object sender, EventArgs e)
        {
            //getting the card id
            String     cardId    = this.cardId;
            AddNewFood addNwFood = AddNewFood.getInstance();

            addNwFood.editcategory(cardId);
            addNwFood.Show();
            this.Hide();
        }