private void loadData()
 {
     recipesData = DatabaseOperations.getRecipes().ToList();
     if (recipesData != null && recipesData.Any())
     {
         updateDatagridview.addRecipeToDataGridView(recipesData, dataGridView1);
     }
 }
Example #2
0
        private async void loadData()
        {
            recipesData = await DatabaseOperations.getSoldRecipes();

            if (recipesData != null && recipesData.Any())
            {
                updateDatagridview.addRecipeToDataGridView(recipesData, dataGridView1);
            }
        }