Files
GotecHaftmittel/APQP/Obrazek.cs
T

50 lines
1.2 KiB
C#

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 = "") => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
#endregion
}
}