50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Haftmittel
|
|
{
|
|
public class Obrazek : INotifyPropertyChanged
|
|
{
|
|
private bool _jest = false;
|
|
private List<Historia> _hist;
|
|
private string opis = string.Empty;
|
|
|
|
public bool Widoczny
|
|
{
|
|
get => _jest;
|
|
set
|
|
{
|
|
_jest = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public string Opis
|
|
{
|
|
get => opis;
|
|
set
|
|
{
|
|
opis = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public List<Historia> HistoriaObrazka
|
|
{
|
|
get => _hist;
|
|
set
|
|
{
|
|
_hist = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
#region Obsługa INotifyPropertyChanged
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void OnPropertyChanged([CallerMemberName] string name = null) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
|
#endregion
|
|
}
|
|
}
|