From e2176960df8a6781e71b205b3df5774564cdb79d Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Tue, 30 May 2017 11:07:07 +0200 Subject: Changed model "DefectComments" to "DefectComment". --- ApartmentManager/ApartmentManager/Singletons/CatalogSingleton.cs | 4 ++-- ApartmentManager/ApartmentManager/ViewModel/ApartmentViewModel.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ApartmentManager/ApartmentManager/Singletons/CatalogSingleton.cs b/ApartmentManager/ApartmentManager/Singletons/CatalogSingleton.cs index 689f08d..6baa647 100644 --- a/ApartmentManager/ApartmentManager/Singletons/CatalogSingleton.cs +++ b/ApartmentManager/ApartmentManager/Singletons/CatalogSingleton.cs @@ -19,13 +19,13 @@ namespace ApartmentManager.Singletons ////////// For Defects ////////// public ObservableCollection Defects { get; set; } public ObservableCollection DefectPictures { get; set; } - public ObservableCollection DefectComments { get; set; } + public ObservableCollection DefectComments { get; set; } public Defect Defect { get; set; } public int DefectId { get; set; } ////////// Constructor ////////// private CatalogSingleton() { - DefectComments = new ObservableCollection(); + DefectComments = new ObservableCollection(); Residents = new ObservableCollection(); Defects = new ObservableCollection(); DefectPictures = new ObservableCollection(); diff --git a/ApartmentManager/ApartmentManager/ViewModel/ApartmentViewModel.cs b/ApartmentManager/ApartmentManager/ViewModel/ApartmentViewModel.cs index b84602d..6048db4 100644 --- a/ApartmentManager/ApartmentManager/ViewModel/ApartmentViewModel.cs +++ b/ApartmentManager/ApartmentManager/ViewModel/ApartmentViewModel.cs @@ -27,7 +27,7 @@ namespace ApartmentManager.ViewModel private Resident _newResident; private Defect _newDefect; private DefectPicture _selectedDefectPicture; - private DefectComments _newDefectComment; + private DefectComment _newDefectComment; ////////// Resident relay commands////////// public ICommand CreateResidentCommand { get; set; } public ICommand DeleteResidentCommand { get; set; } @@ -49,7 +49,7 @@ namespace ApartmentManager.ViewModel NewUser = new User(); NewResident = new Resident(); NewDefect = new Defect(); - NewDefectComment = new DefectComments(); + NewDefectComment = new DefectComment(); SelectedDefectPicture = new DefectPicture(); ////////// Handler ////////// ApartmentHandler = new ApartmentHandler(this); @@ -72,7 +72,7 @@ namespace ApartmentManager.ViewModel CreateDefectComment = new RelayCommand(ApartmentHandler.CreateDefectComment); } ////////// Store Data From Interface////////// - public DefectComments NewDefectComment + public DefectComment NewDefectComment { get => _newDefectComment; set -- cgit v1.2.3