From a49c1d4f2ab03baa3a8fc48c6965473594848c4c Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 6 May 2017 18:17:19 +0200 Subject: Finished login system. --- .../ApartmentManager/ApartmentManager.csproj | 26 ++++-- ApartmentManager/ApartmentManager/AppShell.xaml | 12 +-- ApartmentManager/ApartmentManager/AppShell.xaml.cs | 12 --- .../ApartmentManager/Handler/LoginHandler.cs | 36 ++++++++ .../Model/ApartmentsCatalogSingleton.cs | 45 --------- .../ApartmentManager/Model/CatalogSingleton.cs | 29 ------ ApartmentManager/ApartmentManager/Model/User.cs | 17 ++-- .../Singletons/ApartmentsCatalogSingleton.cs | 45 +++++++++ .../Singletons/CatalogSingleton.cs | 29 ++++++ .../ApartmentManager/Singletons/UserSingleton.cs | 28 ++++++ .../ApartmentManager/View/LoginPage.xaml | 15 ++- .../ApartmentManager/View/LoginPage.xaml.cs | 47 +--------- .../ApartmentManager/ViewModel/LoginViewModel.cs | 101 +++++++++++++++++++-- .../HousingWebApi/Controllers/UsersController.cs | 31 +++---- ApartmentManager/HousingWebApi/DataModel.cs | 32 ++++--- .../HousingWebApi/HousingWebAPI.csproj | 8 +- ApartmentManager/HousingWebApi/Models/Resident.cs | 5 - .../HousingWebApi/Models/ResidentList.cs | 20 ++++ ApartmentManager/HousingWebApi/Models/User.cs | 23 +++-- ApartmentManager/HousingWebApi/ResidentList.cs | 20 ---- ApartmentManager/HousingWebApi/Web.config | 4 +- 21 files changed, 352 insertions(+), 233 deletions(-) create mode 100644 ApartmentManager/ApartmentManager/Handler/LoginHandler.cs delete mode 100644 ApartmentManager/ApartmentManager/Model/ApartmentsCatalogSingleton.cs delete mode 100644 ApartmentManager/ApartmentManager/Model/CatalogSingleton.cs create mode 100644 ApartmentManager/ApartmentManager/Singletons/ApartmentsCatalogSingleton.cs create mode 100644 ApartmentManager/ApartmentManager/Singletons/CatalogSingleton.cs create mode 100644 ApartmentManager/ApartmentManager/Singletons/UserSingleton.cs create mode 100644 ApartmentManager/HousingWebApi/Models/ResidentList.cs delete mode 100644 ApartmentManager/HousingWebApi/ResidentList.cs diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj index 5f4f7da..086b0da 100644 --- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj +++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj @@ -12,7 +12,7 @@ en-US UAP 10.0.14393.0 - 10.0.14393.0 + 10.0.10240.0 14 512 {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} @@ -101,14 +101,16 @@ + - + - + + @@ -144,11 +146,6 @@ ResidentsPage.xaml - - - Designer - - @@ -222,10 +219,21 @@ 5.3.3 - + + + Designer + + 14.0 + + true + + + + +