Dodaj pliki projektów.
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user