From 832f54a7d9360cd25400e3424f6faf147eaaf9c5 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Mon, 20 Sep 2021 00:52:15 +0200 Subject: [PATCH] Refactoring --- Borepin/Borepin/App.xaml.cs | 1 - Borepin/Borepin/Borepin.csproj | 12 ---- Borepin/Borepin/Page/ListPage.xaml | 19 ------- Borepin/Borepin/Page/ListPage.xaml.cs | 15 ----- .../Borepin/Page/SetUpProcess/ScanPage.xaml | 20 +++++-- Borepin/Borepin/Page/TestPage.xaml | 21 ------- Borepin/Borepin/Page/TestPage.xaml.cs | 20 ------- .../AddServerProcess/HostSelectPageModel.cs | 10 ++-- .../AddServerProcess/LoginChoosePageModel.cs | 10 ++-- .../LoginPasswordPageModel.cs | 10 ++-- Borepin/Borepin/PageModel/ListPageModel.cs | 57 ------------------- .../Borepin/PageModel/MachineListPageModel.cs | 4 +- Borepin/Borepin/PageModel/MachinePageModel.cs | 2 +- .../Borepin/PageModel/MainPagePageModel.cs | 37 ++++++++++-- .../Borepin/PageModel/ServerListPageModel.cs | 4 +- Borepin/Borepin/PageModel/ServerPageModel.cs | 12 ++-- .../PageModel/SetUpProcess/ScanPageModel.cs | 12 ++-- .../SetUpProcess/WelcomePageModel.cs | 12 ++-- .../PageModel/StartUpDistributorPageModel.cs | 10 +++- Borepin/Borepin/PageModel/TestPageModel.cs | 39 ------------- Borepin/Borepin/View/IsBusyView.xaml | 10 ---- Borepin/Borepin/View/IsBusyView.xaml.cs | 20 ------- Borepin/Borepin/View/ListItemView.xaml | 12 ---- Borepin/Borepin/View/ListItemView.xaml.cs | 15 ----- .../Borepin/ViewModel/ListItemViewModel.cs | 20 ------- 25 files changed, 103 insertions(+), 301 deletions(-) delete mode 100644 Borepin/Borepin/Page/ListPage.xaml delete mode 100644 Borepin/Borepin/Page/ListPage.xaml.cs delete mode 100644 Borepin/Borepin/Page/TestPage.xaml delete mode 100644 Borepin/Borepin/Page/TestPage.xaml.cs delete mode 100644 Borepin/Borepin/PageModel/ListPageModel.cs delete mode 100644 Borepin/Borepin/PageModel/TestPageModel.cs delete mode 100644 Borepin/Borepin/View/IsBusyView.xaml delete mode 100644 Borepin/Borepin/View/IsBusyView.xaml.cs delete mode 100644 Borepin/Borepin/View/ListItemView.xaml delete mode 100644 Borepin/Borepin/View/ListItemView.xaml.cs delete mode 100644 Borepin/Borepin/ViewModel/ListItemViewModel.cs diff --git a/Borepin/Borepin/App.xaml.cs b/Borepin/Borepin/App.xaml.cs index 09f5c74..6514feb 100644 --- a/Borepin/Borepin/App.xaml.cs +++ b/Borepin/Borepin/App.xaml.cs @@ -45,7 +45,6 @@ namespace Borepin containerRegistry.RegisterForNavigation(); containerRegistry.RegisterForNavigation(); containerRegistry.RegisterForNavigation(); - containerRegistry.RegisterForNavigation(); containerRegistry.RegisterForNavigation("SetUpProcess_WelcomePage"); containerRegistry.RegisterForNavigation("SetUpProcess_ScanPage"); diff --git a/Borepin/Borepin/Borepin.csproj b/Borepin/Borepin/Borepin.csproj index 71862f2..f729d47 100644 --- a/Borepin/Borepin/Borepin.csproj +++ b/Borepin/Borepin/Borepin.csproj @@ -68,9 +68,6 @@ MSBuild:UpdateDesignTimeXaml - - MSBuild:UpdateDesignTimeXaml - MSBuild:UpdateDesignTimeXaml @@ -101,9 +98,6 @@ MSBuild:UpdateDesignTimeXaml - - MSBuild:UpdateDesignTimeXaml - ResXFileCodeGenerator Resources.Designer.cs @@ -115,12 +109,6 @@ MSBuild:UpdateDesignTimeXaml - - MSBuild:UpdateDesignTimeXaml - - - MSBuild:UpdateDesignTimeXaml - MSBuild:UpdateDesignTimeXaml diff --git a/Borepin/Borepin/Page/ListPage.xaml b/Borepin/Borepin/Page/ListPage.xaml deleted file mode 100644 index b649e6b..0000000 --- a/Borepin/Borepin/Page/ListPage.xaml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Borepin/Borepin/Page/ListPage.xaml.cs b/Borepin/Borepin/Page/ListPage.xaml.cs deleted file mode 100644 index 4f57114..0000000 --- a/Borepin/Borepin/Page/ListPage.xaml.cs +++ /dev/null @@ -1,15 +0,0 @@ - -using Xamarin.Forms; -using Xamarin.Forms.Xaml; - -namespace Borepin.Page -{ - [XamlCompilation(XamlCompilationOptions.Compile)] - public partial class ListPage : ContentPage - { - public ListPage() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/Borepin/Borepin/Page/SetUpProcess/ScanPage.xaml b/Borepin/Borepin/Page/SetUpProcess/ScanPage.xaml index 4a60546..a87a52e 100644 --- a/Borepin/Borepin/Page/SetUpProcess/ScanPage.xaml +++ b/Borepin/Borepin/Page/SetUpProcess/ScanPage.xaml @@ -3,14 +3,26 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Borepin.Page.SetUpProcess.ScanPage" xmlns:i18n="clr-namespace:Borepin.Helpers" - xmlns:views="clr-namespace:Borepin.View"> + xmlns:views="clr-namespace:Borepin.View" + xmlns:converters="clr-namespace:Borepin.Converter"> + + + + + + + - - + + + + +