diff --git a/ShoopNCook.csproj b/ShoopNCook.csproj index ef588e9..2a3de7b 100644 --- a/ShoopNCook.csproj +++ b/ShoopNCook.csproj @@ -88,64 +88,64 @@ - + MyListPage.xaml - + IngredientEntry.xaml - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile diff --git a/Pages/ChangePassword.xaml b/Views/ChangePassword.xaml similarity index 100% rename from Pages/ChangePassword.xaml rename to Views/ChangePassword.xaml diff --git a/Pages/ChangePassword.xaml.cs b/Views/ChangePassword.xaml.cs similarity index 100% rename from Pages/ChangePassword.xaml.cs rename to Views/ChangePassword.xaml.cs diff --git a/Views/CounterView.xaml b/Views/Components/CounterView.xaml similarity index 100% rename from Views/CounterView.xaml rename to Views/Components/CounterView.xaml diff --git a/Views/CounterView.xaml.cs b/Views/Components/CounterView.xaml.cs similarity index 100% rename from Views/CounterView.xaml.cs rename to Views/Components/CounterView.xaml.cs diff --git a/Views/HeadedButton.xaml b/Views/Components/HeadedButton.xaml similarity index 100% rename from Views/HeadedButton.xaml rename to Views/Components/HeadedButton.xaml diff --git a/Views/HeadedButton.xaml.cs b/Views/Components/HeadedButton.xaml.cs similarity index 100% rename from Views/HeadedButton.xaml.cs rename to Views/Components/HeadedButton.xaml.cs diff --git a/Views/IngredientEntry.xaml b/Views/Components/IngredientEntry.xaml similarity index 100% rename from Views/IngredientEntry.xaml rename to Views/Components/IngredientEntry.xaml diff --git a/Views/IngredientEntry.xaml.cs b/Views/Components/IngredientEntry.xaml.cs similarity index 100% rename from Views/IngredientEntry.xaml.cs rename to Views/Components/IngredientEntry.xaml.cs diff --git a/Views/IngredientView.xaml b/Views/Components/IngredientView.xaml similarity index 100% rename from Views/IngredientView.xaml rename to Views/Components/IngredientView.xaml diff --git a/Views/IngredientView.xaml.cs b/Views/Components/IngredientView.xaml.cs similarity index 100% rename from Views/IngredientView.xaml.cs rename to Views/Components/IngredientView.xaml.cs diff --git a/Views/OwnedRecipeView.xaml b/Views/Components/OwnedRecipeView.xaml similarity index 100% rename from Views/OwnedRecipeView.xaml rename to Views/Components/OwnedRecipeView.xaml diff --git a/Views/OwnedRecipeView.xaml.cs b/Views/Components/OwnedRecipeView.xaml.cs similarity index 100% rename from Views/OwnedRecipeView.xaml.cs rename to Views/Components/OwnedRecipeView.xaml.cs diff --git a/Views/RecipeView.xaml b/Views/Components/RecipeView.xaml similarity index 100% rename from Views/RecipeView.xaml rename to Views/Components/RecipeView.xaml diff --git a/Views/RecipeView.xaml.cs b/Views/Components/RecipeView.xaml.cs similarity index 100% rename from Views/RecipeView.xaml.cs rename to Views/Components/RecipeView.xaml.cs diff --git a/Views/StepEntry.xaml b/Views/Components/StepEntry.xaml similarity index 97% rename from Views/StepEntry.xaml rename to Views/Components/StepEntry.xaml index ffed80e..3bff27a 100644 --- a/Views/StepEntry.xaml +++ b/Views/Components/StepEntry.xaml @@ -1,29 +1,29 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/Views/StepEntry.xaml.cs b/Views/Components/StepEntry.xaml.cs similarity index 94% rename from Views/StepEntry.xaml.cs rename to Views/Components/StepEntry.xaml.cs index 1807de5..a2a229c 100644 --- a/Views/StepEntry.xaml.cs +++ b/Views/Components/StepEntry.xaml.cs @@ -1,19 +1,19 @@ -namespace ShoopNCook.Views; - -public partial class StepEntry : ContentView -{ - - public StepEntry(): this(1) - {} - - public StepEntry(uint ordinal) - { - InitializeComponent(); - Ordinal = ordinal; - } - - public uint Ordinal { - get => uint.Parse(OrdinalLabel.Text); - set => OrdinalLabel.Text = value.ToString(); - } +namespace ShoopNCook.Views; + +public partial class StepEntry : ContentView +{ + + public StepEntry(): this(1) + {} + + public StepEntry(uint ordinal) + { + InitializeComponent(); + Ordinal = ordinal; + } + + public uint Ordinal { + get => uint.Parse(OrdinalLabel.Text); + set => OrdinalLabel.Text = value.ToString(); + } } \ No newline at end of file diff --git a/Views/StoredRecipeView.xaml b/Views/Components/StoredRecipeView.xaml similarity index 100% rename from Views/StoredRecipeView.xaml rename to Views/Components/StoredRecipeView.xaml diff --git a/Views/StoredRecipeView.xaml.cs b/Views/Components/StoredRecipeView.xaml.cs similarity index 100% rename from Views/StoredRecipeView.xaml.cs rename to Views/Components/StoredRecipeView.xaml.cs diff --git a/Pages/ConfirmMail.xaml b/Views/ConfirmMail.xaml similarity index 100% rename from Pages/ConfirmMail.xaml rename to Views/ConfirmMail.xaml diff --git a/Pages/ConfirmMail.xaml.cs b/Views/ConfirmMail.xaml.cs similarity index 100% rename from Pages/ConfirmMail.xaml.cs rename to Views/ConfirmMail.xaml.cs diff --git a/Pages/CreateRecipePage.xaml b/Views/CreateRecipePage.xaml similarity index 100% rename from Pages/CreateRecipePage.xaml rename to Views/CreateRecipePage.xaml diff --git a/Pages/CreateRecipePage.xaml.cs b/Views/CreateRecipePage.xaml.cs similarity index 98% rename from Pages/CreateRecipePage.xaml.cs rename to Views/CreateRecipePage.xaml.cs index 51c2c2d..64b0fd5 100644 --- a/Pages/CreateRecipePage.xaml.cs +++ b/Views/CreateRecipePage.xaml.cs @@ -10,16 +10,16 @@ public partial class CreateRecipePage : ContentPage } private void OnAddIngredientTapped(object sender, TappedEventArgs e) - { + { IngredientList.Children.Add(new IngredientEntry()); - } - + } + private void OnAddStepTapped(object sender, TappedEventArgs e) - { + { StepList.Children.Add(new StepEntry((uint) StepList.Children.Count() + 1)); } - private async void OnBackButtonClicked(object sender, EventArgs e) - { - await Navigation.PopAsync(); + private async void OnBackButtonClicked(object sender, EventArgs e) + { + await Navigation.PopAsync(); } } \ No newline at end of file diff --git a/Pages/FavoritesPage.xaml b/Views/FavoritesPage.xaml similarity index 100% rename from Pages/FavoritesPage.xaml rename to Views/FavoritesPage.xaml diff --git a/Pages/FavoritesPage.xaml.cs b/Views/FavoritesPage.xaml.cs similarity index 100% rename from Pages/FavoritesPage.xaml.cs rename to Views/FavoritesPage.xaml.cs diff --git a/Pages/ForgotPassword.xaml b/Views/ForgotPassword.xaml similarity index 97% rename from Pages/ForgotPassword.xaml rename to Views/ForgotPassword.xaml index 6acca64..54e050b 100644 --- a/Pages/ForgotPassword.xaml +++ b/Views/ForgotPassword.xaml @@ -1,171 +1,171 @@ - - - - - - - - - - - - - - - -