예제 #1
0
        private void btnAddnewCategory_Click(object sender, EventArgs e)
        {
            AddFoodCategory addFoodCategories = AddFoodCategory.getInstance();

            addFoodCategories.Show();
            this.Hide();
        }
예제 #2
0
 public static AddFoodCategory getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new AddFoodCategory();
     }
     return(uniqueInstance);
 }
예제 #3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            //getting the card id
            String          cardId          = this.txtCardID.Text;
            AddFoodCategory addFoodcategory = AddFoodCategory.getInstance();

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