예제 #1
0
        private void btnAddNewFoods2_Click(object sender, EventArgs e)
        {
            AddNewFood addFood = AddNewFood.getInstance();

            this.Hide();
            addFood.Show();
        }
예제 #2
0
 public static AddNewFood getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new AddNewFood();
     }
     return(uniqueInstance);
 }
예제 #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();
        }