61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
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<Historia> _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<Historia> 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
|
|
}
|
|
}
|