diff options
author | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-05-31 10:51:51 +0200 |
---|---|---|
committer | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-05-31 10:51:51 +0200 |
commit | cbc038ba3beb2d155c7a135ca64ffa64b30a1a52 (patch) | |
tree | ffd7105008e4f3ce7fcea0f7b926f4630832f343 | |
parent | e33f6f239ffa65f38f445ff8f8b3ecec1d7eedf9 (diff) | |
parent | fadcb1fa5e19a23ef172735bbaae2569f648c3d1 (diff) |
Merge branch 'master' of https://github.com/marcinzelent/ApartmentAdmindelivered
-rw-r--r-- | ApartmentManager/ApartmentManager/Model/Apartment.cs | 2 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/Model/ApartmentChange.cs | 2 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/Model/Defect.cs | 18 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/Model/User.cs | 3 | ||||
-rw-r--r-- | Diagrams/DCD.png | bin | 0 -> 374167 bytes | |||
-rw-r--r-- | Diagrams/DCD.vsdx | bin | 109929 -> 130157 bytes |
6 files changed, 3 insertions, 22 deletions
diff --git a/ApartmentManager/ApartmentManager/Model/Apartment.cs b/ApartmentManager/ApartmentManager/Model/Apartment.cs index a32c081..3096214 100644 --- a/ApartmentManager/ApartmentManager/Model/Apartment.cs +++ b/ApartmentManager/ApartmentManager/Model/Apartment.cs @@ -14,8 +14,6 @@ namespace ApartmentManager.Model public string Address { get; set; } private string _planPicture; - public Apartment() { } - public string PlanPicture { get => _planPicture; diff --git a/ApartmentManager/ApartmentManager/Model/ApartmentChange.cs b/ApartmentManager/ApartmentManager/Model/ApartmentChange.cs index 640112c..608db89 100644 --- a/ApartmentManager/ApartmentManager/Model/ApartmentChange.cs +++ b/ApartmentManager/ApartmentManager/Model/ApartmentChange.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace ApartmentManager { - public class ApartmentChange + public class ApartmentChange : INotifyPropertyChanged { public int ChangeId { get; set; } public int ApartmentId { get; set; } diff --git a/ApartmentManager/ApartmentManager/Model/Defect.cs b/ApartmentManager/ApartmentManager/Model/Defect.cs index 6e78e66..29f8b55 100644 --- a/ApartmentManager/ApartmentManager/Model/Defect.cs +++ b/ApartmentManager/ApartmentManager/Model/Defect.cs @@ -14,27 +14,9 @@ namespace ApartmentManager.Model public DateTime UploadDate { get; set; } public string Description { get; set; } public string Status { get; set; } - public string MainPicture { get; set; } private ObservableCollection<DefectPicture> _pictures; private ObservableCollection<DefectComment> _comments; - public Defect() { } - - public Defect(int defectId, int apartmentId, string name, DateTime uploadDate, string description, string status) - { - DefectId = defectId; - ApartmentId = apartmentId; - Name = name; - UploadDate = uploadDate; - Description = description; - Status = status; - } - - public override string ToString() - { - return string.Format($"Defect ID: {DefectId}, Apartment number: {ApartmentId}, Name: {Name}, Upload date: {UploadDate}, Description: {Description}, Status: {Status}"); - } - public ObservableCollection<DefectPicture> Pictures { get => _pictures; diff --git a/ApartmentManager/ApartmentManager/Model/User.cs b/ApartmentManager/ApartmentManager/Model/User.cs index 26a6b29..e91fdcd 100644 --- a/ApartmentManager/ApartmentManager/Model/User.cs +++ b/ApartmentManager/ApartmentManager/Model/User.cs @@ -16,10 +16,11 @@ namespace ApartmentManager.Model public DateTimeOffset BirthDate { get; set; } public string Phone { get; set; } public string Email { get; set; } - public string _picture { get; set; } public DateTimeOffset? MoveInDate { get; set; } public DateTimeOffset? MoveOutDate { get; set; } + private string _picture; + public string Picture { get => _picture; diff --git a/Diagrams/DCD.png b/Diagrams/DCD.png Binary files differnew file mode 100644 index 0000000..e212d65 --- /dev/null +++ b/Diagrams/DCD.png diff --git a/Diagrams/DCD.vsdx b/Diagrams/DCD.vsdx Binary files differindex 9f9e57e..2c80690 100644 --- a/Diagrams/DCD.vsdx +++ b/Diagrams/DCD.vsdx |