From 7b0cf64d0ef06fc38b34548c353ad8bbb8b65585 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Mon, 20 Sep 2021 18:40:39 +0200 Subject: [PATCH 01/10] Revert "Refactoring" This reverts commit 832f54a7d9360cd25400e3424f6faf147eaaf9c5. --- 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, 301 insertions(+), 103 deletions(-) create mode 100644 Borepin/Borepin/Page/ListPage.xaml create mode 100644 Borepin/Borepin/Page/ListPage.xaml.cs create mode 100644 Borepin/Borepin/Page/TestPage.xaml create mode 100644 Borepin/Borepin/Page/TestPage.xaml.cs create mode 100644 Borepin/Borepin/PageModel/ListPageModel.cs create mode 100644 Borepin/Borepin/PageModel/TestPageModel.cs create mode 100644 Borepin/Borepin/View/IsBusyView.xaml create mode 100644 Borepin/Borepin/View/IsBusyView.xaml.cs create mode 100644 Borepin/Borepin/View/ListItemView.xaml create mode 100644 Borepin/Borepin/View/ListItemView.xaml.cs create mode 100644 Borepin/Borepin/ViewModel/ListItemViewModel.cs diff --git a/Borepin/Borepin/App.xaml.cs b/Borepin/Borepin/App.xaml.cs index 6514feb..09f5c74 100644 --- a/Borepin/Borepin/App.xaml.cs +++ b/Borepin/Borepin/App.xaml.cs @@ -45,6 +45,7 @@ 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 f729d47..71862f2 100644 --- a/Borepin/Borepin/Borepin.csproj +++ b/Borepin/Borepin/Borepin.csproj @@ -68,6 +68,9 @@ MSBuild:UpdateDesignTimeXaml + + MSBuild:UpdateDesignTimeXaml + MSBuild:UpdateDesignTimeXaml @@ -98,6 +101,9 @@ MSBuild:UpdateDesignTimeXaml + + MSBuild:UpdateDesignTimeXaml + ResXFileCodeGenerator Resources.Designer.cs @@ -109,6 +115,12 @@ MSBuild:UpdateDesignTimeXaml + + MSBuild:UpdateDesignTimeXaml + + + MSBuild:UpdateDesignTimeXaml + MSBuild:UpdateDesignTimeXaml diff --git a/Borepin/Borepin/Page/ListPage.xaml b/Borepin/Borepin/Page/ListPage.xaml new file mode 100644 index 0000000..b649e6b --- /dev/null +++ b/Borepin/Borepin/Page/ListPage.xaml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Borepin/Borepin/Page/ListPage.xaml.cs b/Borepin/Borepin/Page/ListPage.xaml.cs new file mode 100644 index 0000000..4f57114 --- /dev/null +++ b/Borepin/Borepin/Page/ListPage.xaml.cs @@ -0,0 +1,15 @@ + +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 a87a52e..4a60546 100644 --- a/Borepin/Borepin/Page/SetUpProcess/ScanPage.xaml +++ b/Borepin/Borepin/Page/SetUpProcess/ScanPage.xaml @@ -3,26 +3,14 @@ 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:converters="clr-namespace:Borepin.Converter"> - - - - - - - + xmlns:views="clr-namespace:Borepin.View"> - - - - - + +