From 9ba8a14faeea6abb8cb3ec25d01387c878f878be Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 14 Nov 2016 17:55:24 +0100 Subject: [PATCH] refactoring --- .../Pages/{ => BlogPages}/BlogPage.cs | 2 +- BookAStar/BookAStar/Pages/ChatPage.xaml.cs | 4 ++-- .../Pages/Estimate/BookQueriesPage.xaml.cs | 2 ++ .../Pages/Estimate/BookQueryPage.xaml.cs | 2 +- .../Estimate/EditBillingLinePage.xaml.cs | 1 + .../Pages/Estimate/EditEstimatePage.xaml.cs | 3 ++- .../AccountChooserPage.xaml | 3 +-- .../AccountChooserPage.xaml.cs | 8 +++---- .../{User => UserProfile}/DashboardPage.xaml | 3 ++- .../DashboardPage.xaml.cs | 21 +++++++------------ .../BillingLineViewModel.cs | 4 +--- .../BookQueriesViewModel.cs | 2 +- .../BookQueryViewModel.cs | 2 +- .../EditEstimateViewModel.cs | 2 +- .../{Chat => Messaging}/ChatViewModel.cs | 2 +- .../Signing/EstimateSignaturePad.cs | 14 +++++++++++++ .../ViewModels/User/UserLoginViewModel.cs | 15 ------------- .../DashboardViewModel.cs | 9 ++++++-- 18 files changed, 49 insertions(+), 50 deletions(-) rename BookAStar/BookAStar/Pages/{ => BlogPages}/BlogPage.cs (97%) rename BookAStar/BookAStar/Pages/{User => UserProfile}/AccountChooserPage.xaml (95%) rename BookAStar/BookAStar/Pages/{User => UserProfile}/AccountChooserPage.xaml.cs (94%) rename BookAStar/BookAStar/Pages/{User => UserProfile}/DashboardPage.xaml (96%) rename BookAStar/BookAStar/Pages/{User => UserProfile}/DashboardPage.xaml.cs (79%) rename BookAStar/BookAStar/ViewModels/{Estimate => EstimateAndBilling}/BillingLineViewModel.cs (98%) rename BookAStar/BookAStar/ViewModels/{Query => EstimateAndBilling}/BookQueriesViewModel.cs (91%) rename BookAStar/BookAStar/ViewModels/{Query => EstimateAndBilling}/BookQueryViewModel.cs (96%) rename BookAStar/BookAStar/ViewModels/{Estimate => EstimateAndBilling}/EditEstimateViewModel.cs (98%) rename BookAStar/BookAStar/ViewModels/{Chat => Messaging}/ChatViewModel.cs (98%) create mode 100644 BookAStar/BookAStar/ViewModels/Signing/EstimateSignaturePad.cs delete mode 100644 BookAStar/BookAStar/ViewModels/User/UserLoginViewModel.cs rename BookAStar/BookAStar/ViewModels/{User => UserProfile}/DashboardViewModel.cs (97%) diff --git a/BookAStar/BookAStar/Pages/BlogPage.cs b/BookAStar/BookAStar/Pages/BlogPages/BlogPage.cs similarity index 97% rename from BookAStar/BookAStar/Pages/BlogPage.cs rename to BookAStar/BookAStar/Pages/BlogPages/BlogPage.cs index c19d3f1f..135c9f9a 100644 --- a/BookAStar/BookAStar/Pages/BlogPage.cs +++ b/BookAStar/BookAStar/Pages/BlogPages/BlogPage.cs @@ -2,7 +2,7 @@ using Xamarin.Forms; -namespace BookAStar.Pages +namespace BookAStar.Pages.BlogPages { public class BlogPage : ContentPage { diff --git a/BookAStar/BookAStar/Pages/ChatPage.xaml.cs b/BookAStar/BookAStar/Pages/ChatPage.xaml.cs index 3d4625ad..83a26464 100644 --- a/BookAStar/BookAStar/Pages/ChatPage.xaml.cs +++ b/BookAStar/BookAStar/Pages/ChatPage.xaml.cs @@ -6,9 +6,9 @@ using Xamarin.Forms; namespace BookAStar.Pages { using Data; - using Model; using System.Linq; - using ViewModels; + using ViewModels.Messaging; + public partial class ChatPage : TabbedPage { public string ChatUser { get; set; } diff --git a/BookAStar/BookAStar/Pages/Estimate/BookQueriesPage.xaml.cs b/BookAStar/BookAStar/Pages/Estimate/BookQueriesPage.xaml.cs index 4b08b0f9..56febae2 100644 --- a/BookAStar/BookAStar/Pages/Estimate/BookQueriesPage.xaml.cs +++ b/BookAStar/BookAStar/Pages/Estimate/BookQueriesPage.xaml.cs @@ -7,6 +7,8 @@ using XLabs.Platform.Services; namespace BookAStar.Pages { using Data; + using ViewModels.EstimateAndBilling; + public partial class BookQueriesPage : ContentPage { public BookQueriesPage() diff --git a/BookAStar/BookAStar/Pages/Estimate/BookQueryPage.xaml.cs b/BookAStar/BookAStar/Pages/Estimate/BookQueryPage.xaml.cs index dbc0377f..a09a7e63 100644 --- a/BookAStar/BookAStar/Pages/Estimate/BookQueryPage.xaml.cs +++ b/BookAStar/BookAStar/Pages/Estimate/BookQueryPage.xaml.cs @@ -8,7 +8,7 @@ namespace BookAStar.Pages using Model; using Model.Workflow; using System.Linq; - using ViewModels; + using ViewModels.EstimateAndBilling; public partial class BookQueryPage : ContentPage { diff --git a/BookAStar/BookAStar/Pages/Estimate/EditBillingLinePage.xaml.cs b/BookAStar/BookAStar/Pages/Estimate/EditBillingLinePage.xaml.cs index 0667afe1..da6674f3 100644 --- a/BookAStar/BookAStar/Pages/Estimate/EditBillingLinePage.xaml.cs +++ b/BookAStar/BookAStar/Pages/Estimate/EditBillingLinePage.xaml.cs @@ -1,5 +1,6 @@ using BookAStar.Data; using BookAStar.ViewModels; +using BookAStar.ViewModels.EstimateAndBilling; using System; using System.Collections.Generic; using Xamarin.Forms; diff --git a/BookAStar/BookAStar/Pages/Estimate/EditEstimatePage.xaml.cs b/BookAStar/BookAStar/Pages/Estimate/EditEstimatePage.xaml.cs index 4c46a728..a280e617 100644 --- a/BookAStar/BookAStar/Pages/Estimate/EditEstimatePage.xaml.cs +++ b/BookAStar/BookAStar/Pages/Estimate/EditEstimatePage.xaml.cs @@ -5,7 +5,8 @@ namespace BookAStar.Pages { using Data; using Model.Workflow; - using ViewModels; + using ViewModels.EstimateAndBilling; + public partial class EditEstimatePage : ContentPage { diff --git a/BookAStar/BookAStar/Pages/User/AccountChooserPage.xaml b/BookAStar/BookAStar/Pages/UserProfile/AccountChooserPage.xaml similarity index 95% rename from BookAStar/BookAStar/Pages/User/AccountChooserPage.xaml rename to BookAStar/BookAStar/Pages/UserProfile/AccountChooserPage.xaml index 14d8eac2..31062f0d 100644 --- a/BookAStar/BookAStar/Pages/User/AccountChooserPage.xaml +++ b/BookAStar/BookAStar/Pages/UserProfile/AccountChooserPage.xaml @@ -2,7 +2,7 @@ @@ -16,7 +16,6 @@ > -