From 18acea8a3751f81695ee475e68669145f67c1f24 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Wed, 10 May 2017 21:05:13 +0200 Subject: Fixed resident's picture not updating on upload. --- ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs | 3 +++ .../ApartmentManager/View/ApartmentResidentsPage.xaml | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs b/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs index 7bc39f9..f3cc8b3 100644 --- a/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs +++ b/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs @@ -142,6 +142,9 @@ namespace ApartmentManager.Handler try { ApartmentViewModel.NewResident.Picture = await ImgurPhotoUploader.UploadPhotoAsync(); + var tmp = ApartmentViewModel.NewResident; + ApartmentViewModel.NewResident = new Resident(); + ApartmentViewModel.NewResident = tmp; } catch (Exception e) { diff --git a/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml index e7018bf..ff394b3 100644 --- a/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml +++ b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml @@ -13,7 +13,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -94,9 +94,9 @@ -