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

            addFoodCategories.Show();
            this.Hide();
        }
Example #2
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();
        }