You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.8 KiB
C#

7 months ago
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlnMesnac.WPF.Model
{
public class RfidInfo : INotifyPropertyChanged
{
private string _name;
public string Name
{
get { return _name; }
set
{
if (_name != value)
{
_name = value;
OnPropertyChanged(nameof(Name));
}
}
}
private string _ip;
public string Ip
{
get { return _ip; }
set
{
if (_ip != value)
{
_ip = value;
OnPropertyChanged(nameof(Ip));
}
}
}
private int _isOnline;
public int IsOnline
{
get { return _isOnline; }
set
{
if (_isOnline != value)
{
_isOnline = value;
OnPropertyChanged(nameof(IsOnline));
OnPropertyChanged(nameof(ImageSource));
}
}
}
private string _imageSource;
public string ImageSource
{
get { return _imageSource; }
set
{
if (_imageSource != value)
{
_imageSource = value;
OnPropertyChanged(nameof(ImageSource));
}
}
}
public event PropertyChangedEventHandler? PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}