1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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));
-
- }
- }
- }
|