From 5b8184a2fd8183f47637300bbda80b36e9f2023f Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 27 May 2017 15:08:23 +0200 Subject: Removed obsolete constructor and ToString method, added OnPropertyChanged for picture. --- ApartmentManager/ApartmentManager/Model/User.cs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/ApartmentManager/ApartmentManager/Model/User.cs b/ApartmentManager/ApartmentManager/Model/User.cs index e7e43ec..f5da6fd 100644 --- a/ApartmentManager/ApartmentManager/Model/User.cs +++ b/ApartmentManager/ApartmentManager/Model/User.cs @@ -25,18 +25,6 @@ namespace ApartmentManager.Model public DateTime? MoveInDate { get; set; } public DateTime? MoveOutDate { get; set; } - - public User() { } - - public User(string FirstName, string LastName, string Phone, DateTime BirthDate, string Email) - { - this.FirstName = FirstName; - this.LastName = LastName; - this.BirthDate = BirthDate; - this.Phone = Phone; - this.Email = Email; - } - public string Picture { get => _picture; @@ -46,13 +34,7 @@ namespace ApartmentManager.Model OnPropertyChanged(nameof(Picture)); } } - public override string ToString() - { - return string.Format($"First name {FirstName} Last name {LastName} Phone {Phone}"); - } - - - + public event PropertyChangedEventHandler PropertyChanged; [NotifyPropertyChangedInvocator] -- cgit v1.2.3