using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OUP.ForOUP { class Descriptions: INotifyPropertyChanged { private bool _isDone; private string _prod; private string _description; public string Product { get { return _prod; } set { if (_prod == value) return; _prod = value; OnPropertyChanged("Product"); } } public DateTime Date { get; set; } = DateTime.Now; public bool IsDone { get { return _isDone; } set { if (_isDone == value) return; _isDone = value; OnPropertyChanged("IsDone"); } } public string Description { get { return _description; } set { if (_description == value) return; _description = value; OnPropertyChanged("Description"); _description = value; } } public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName = "") { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }