Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ListaMarcas: System.ComponentModel.INotifyPropertyChanged
- {
- private bool bMarcado;
- private string sTexto;
- public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
- public virtual void OnPropertyChanged(string propertyName)
- {
- System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
- if ((handler != null))
- {
- handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
- }
- }
- public bool Marcado
- {
- get
- {
- return bMarcado;
- }
- set
- {
- if ((bMarcado.Equals(value) != true))
- {
- bMarcado = value;
- this.OnPropertyChanged("Marcado");
- }
- }
- }
- public string texto
- {
- get
- {
- return sTexto;
- }
- set
- {
- if ((sTexto.Equals(value) != true))
- {
- sTexto = value;
- this.OnPropertyChanged("texto");
- }
- }
- }
- }
- private ObservableCollection<ListaMarcas> pListaSistemas;
- [XmlIgnore]
- public ObservableCollection<ListaMarcas> ListaMarcas
- {
- get
- {
- return pListaSistemas;
- }
- set
- {
- if ((pListaSistemas != null))
- {
- if ((pListaSistemas.Equals(value) != true))
- {
- pListaSistemas = value;
- this.OnPropertyChanged("select");
- }
- }
- else
- {
- pListaSistemas = value;
- this.OnPropertyChanged("select");
- }
- }
- }
- public consultaRestriccion restriccion
- {
- get
- {
- return this.restriccionField;
- }
- set
- {
- if ((this.restriccionField != null))
- {
- if ((restriccionField.Equals(value) != true))
- {
- this.restriccionField = value;
- this.OnPropertyChanged("restriccion");
- }
- }
- else
- {
- this.restriccionField = value;
- this.OnPropertyChanged("restriccion");
- }
- }
- }
- private List<String> ldatos;
- public List<String> lista
- {
- get
- {
- return ldatos;
- }
- set
- {
- ldatos = split(stexto)
- }
- }
Add Comment
Please, Sign In to add comment