Guest User

Untitled

a guest
Oct 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. public class ListaMarcas: System.ComponentModel.INotifyPropertyChanged
  2. {
  3. private bool bMarcado;
  4. private string sTexto;
  5. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  6. public virtual void OnPropertyChanged(string propertyName)
  7. {
  8. System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
  9. if ((handler != null))
  10. {
  11. handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  12. }
  13. }
  14. public bool Marcado
  15. {
  16. get
  17. {
  18. return bMarcado;
  19. }
  20. set
  21. {
  22. if ((bMarcado.Equals(value) != true))
  23. {
  24. bMarcado = value;
  25. this.OnPropertyChanged("Marcado");
  26. }
  27. }
  28. }
  29.  
  30. public string texto
  31. {
  32. get
  33. {
  34. return sTexto;
  35. }
  36. set
  37. {
  38. if ((sTexto.Equals(value) != true))
  39. {
  40. sTexto = value;
  41. this.OnPropertyChanged("texto");
  42. }
  43.  
  44. }
  45. }
  46. }
  47.  
  48. private ObservableCollection<ListaMarcas> pListaSistemas;
  49.  
  50. [XmlIgnore]
  51. public ObservableCollection<ListaMarcas> ListaMarcas
  52. {
  53. get
  54. {
  55. return pListaSistemas;
  56. }
  57. set
  58. {
  59. if ((pListaSistemas != null))
  60. {
  61. if ((pListaSistemas.Equals(value) != true))
  62. {
  63. pListaSistemas = value;
  64. this.OnPropertyChanged("select");
  65. }
  66. }
  67. else
  68. {
  69. pListaSistemas = value;
  70. this.OnPropertyChanged("select");
  71. }
  72. }
  73. }
  74.  
  75. public consultaRestriccion restriccion
  76. {
  77. get
  78. {
  79. return this.restriccionField;
  80. }
  81. set
  82. {
  83. if ((this.restriccionField != null))
  84. {
  85. if ((restriccionField.Equals(value) != true))
  86. {
  87. this.restriccionField = value;
  88. this.OnPropertyChanged("restriccion");
  89. }
  90. }
  91. else
  92. {
  93. this.restriccionField = value;
  94. this.OnPropertyChanged("restriccion");
  95. }
  96. }
  97. }
  98.  
  99. private List<String> ldatos;
  100.  
  101. public List<String> lista
  102. {
  103. get
  104. {
  105. return ldatos;
  106. }
  107. set
  108. {
  109. ldatos = split(stexto)
  110. }
  111. }
Add Comment
Please, Sign In to add comment