RecipeTarget.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Aitex.Sorter.Common;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using MECF.Framework.Common.Equipment;
  8. using System.Windows.Input;
  9. namespace Aitex.Sorter.UI.ViewModel
  10. {
  11. public class RecipeTarget : NotifyPropertyChangedBase, ICloneable
  12. {
  13. private string index;
  14. public string Index
  15. {
  16. get => index;
  17. set
  18. {
  19. index = value;
  20. OnPropertyChanged("Index");
  21. }
  22. }
  23. private string name;
  24. public string Name
  25. {
  26. get => name;
  27. set
  28. {
  29. name = value;
  30. OnPropertyChanged("Name");
  31. }
  32. }
  33. private ModuleName value;
  34. public ModuleName Value
  35. {
  36. get => value;
  37. set
  38. {
  39. this.value = value;
  40. OnPropertyChanged("Value");
  41. }
  42. }
  43. private bool isChecked;
  44. public bool IsChecked
  45. {
  46. get => isChecked;
  47. set
  48. {
  49. isChecked = value;
  50. OnPropertyChanged("IsChecked");
  51. }
  52. }
  53. private ICommand selectCommand;
  54. public ICommand SelectCommand
  55. {
  56. get => selectCommand;
  57. set
  58. {
  59. selectCommand = value;
  60. OnPropertyChanged("SelectCommand");
  61. }
  62. }
  63. public object Clone()
  64. {
  65. return MemberwiseClone();
  66. }
  67. }
  68. }