WindowTasksModel.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PPC
  10. {
  11. public class WindowTasksModel : INotifyPropertyChanged
  12. {
  13. private int id_task;
  14. private string name_task;
  15. private string description_task;
  16. private Nullable<System.DateTime> date_start_job;
  17. private Nullable<System.DateTime> date_finish_job;
  18. public int Id_task
  19. {
  20. get { return id_task; }
  21. set
  22. {
  23. id_task = value;
  24. OnPropertyChanged("Id_task");
  25. }
  26. }
  27. public string Name_task
  28. {
  29. get { return name_task; }
  30. set
  31. {
  32. name_task = value;
  33. OnPropertyChanged("Name_task");
  34. }
  35. }
  36. public string Description_task
  37. {
  38. get { return description_task; }
  39. set
  40. {
  41. description_task = value;
  42. OnPropertyChanged("Description_task");
  43. }
  44. }
  45. public Nullable<System.DateTime> Date_start_job
  46. {
  47. get { return date_start_job; }
  48. set
  49. {
  50. date_start_job = value;
  51. OnPropertyChanged("Date_start_job");
  52. }
  53. }
  54. public Nullable<System.DateTime> Date_finish_job
  55. {
  56. get { return date_finish_job; }
  57. set
  58. {
  59. date_finish_job = value;
  60. OnPropertyChanged("Date_finish_job");
  61. }
  62. }
  63. public event PropertyChangedEventHandler PropertyChanged;
  64. public void OnPropertyChanged([CallerMemberName] string prop = "")
  65. {
  66. if (PropertyChanged != null)
  67. PropertyChanged(this, new PropertyChangedEventArgs(prop));
  68. }
  69. }
  70. }