Example #1
0
        private void StoreIngredient(object ingredient)
        {
            string json = System.Text.Json.JsonSerializer.Serialize(ingredient);

            File_Manager.CreateFolder(App_Constands.FolderPath);
            File_Manager.CreateFile(App_Constands.FilePathIngredient);
            File_Manager.WriteDataToFile(json, App_Constands.FilePathIngredient);
        }
Example #2
0
        private void StorePizza(object pizza)
        {
            string json = System.Text.Json.JsonSerializer.Serialize(pizza);

            File_Manager.CreateFolder(App_Constands.FolderPath);
            File_Manager.CreateFile(App_Constands.FilePathPizza);
            File_Manager.WriteDataToFile(json, App_Constands.FilePathPizza);
        }
Example #3
0
        private void StoreOrder(Order Order)
        {
            string json = System.Text.Json.JsonSerializer.Serialize(Order);

            File_Manager.CreateFolder(App_Constands.FolderPath);
            File_Manager.CreateFile(App_Constands.FilePathOrder);
            File_Manager.WriteDataToFile(json, App_Constands.FilePathOrder);
        }
Example #4
0
 private void LoadAllIngredients()
 {
     File_Manager.CreateFolder(App_Constands.FolderPath);
     File_Manager.CreateFile(App_Constands.FilePathIngredient);
     AllIngredientsJson = File_Manager.LoadAllFiles(App_Constands.FilePathIngredient);
 }
Example #5
0
 private void LoadAllPizzas()
 {
     File_Manager.CreateFolder(App_Constands.FolderPath);
     File_Manager.CreateFile(App_Constands.FilePathPizza);
     AllPizzasJson = File_Manager.LoadAllFiles(App_Constands.FilePathPizza);
 }
Example #6
0
 private void LoadAllOrders()
 {
     File_Manager.CreateFolder(App_Constands.FolderPath);
     File_Manager.CreateFile(App_Constands.FilePathOrder);
     AllOrdersJson = File_Manager.LoadAllFiles(App_Constands.FilePathOrder);
 }