Created
December 3, 2010 15:52
-
-
Save anonymous/727119 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Articulo : INotifyPropertyChanged | |
| { | |
| public String Nombre { get { return ValorNombre; } | |
| set { if (!value.Equals(ViejoNombre)) { ViejoNombre = ValorNombre.Clone() as String; ValorNombre = value; NotifyPropertyChanged("Nombre"); } else return; } } | |
| public String Categoria { get { return ValorCategoria; } | |
| set { if (!value.Equals(ViejoCategoria)) { ViejoCategoria = ValorCategoria.Clone() as String; ValorCategoria = value; NotifyPropertyChanged("Categoria"); } else return; } } | |
| public String Observaciones { get { return ValorObservaciones; } | |
| set { if (!value.Equals(ViejoObservaciones)) { ViejoObservaciones = ValorNombre.Clone() as String; ValorObservaciones = value; NotifyPropertyChanged("Categoria"); } else return; } } | |
| public String Referencia { get; set; } | |
| public String Color { get; set; } | |
| public String Material { get; set; } | |
| public int Valor { get; set; } | |
| public int Cantidad { get; set; } | |
| public int ID { get; private set; } | |
| private String ValorNombre; | |
| private String ValorCategoria; | |
| private String ValorObservaciones; | |
| private String ValorReferencia; | |
| private String ValorColor; | |
| private String ValorMaterial; | |
| private int ValorValor; | |
| private int ValorCantidad; | |
| public String ViejoNombre { public get; private set; } | |
| public String ViejoCategoria { public get; private set; } | |
| public String ViejoObservaciones { public get; private set; } | |
| public String ViejoReferencia { public get; private set; } | |
| public String ViejoColor { public get; private set; } | |
| public String ViejoMaterial { public get; private set; } | |
| public int ViejoValor { public get; private set; } | |
| public int ViejaCantidad { public get; private set; } | |
| public event PropertyChangedEventHandler PropertyChanged; | |
| private void NotifyPropertyChanged(String info) | |
| { | |
| if (PropertyChanged != null) | |
| { | |
| PropertyChanged(this, new PropertyChangedEventArgs(info)); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment