using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.Windows; namespace Haftmittel { public class Obrazek : INotifyPropertyChanged { private bool _jest = false; private List _hist; private string opis = string.Empty; public bool Widoczny { get { return _jest; } set { _jest = value; OnPropertyChanged("Widoczny"); } } public string Opis { get { return opis; } set { opis = value; OnPropertyChanged("Opis"); } } public List HistoriaObrazka { get { return _hist;} set { _hist = value; OnPropertyChanged("HistoriaObrazka"); } } #region Obsługa INotifyPropertyChanged public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(string name) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(name)); } } #endregion } }