Files

41 lines
1.0 KiB
C#
Raw Permalink Normal View History

2025-09-16 16:06:41 +08:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MvdLiteSnoop
{
public class RowItem : INotifyPropertyChanged
{
private string _name;
private bool _isActive;
private string _type;
public string Name
{
get => _name;
set { if (_name != value) { _name = value; OnPropertyChanged(nameof(Name)); } }
}
public bool IsActive
{
get => _isActive;
set { if (_isActive != value) { _isActive = value; OnPropertyChanged(nameof(IsActive)); } }
}
public string Type
{
get => _type;
set { if (_type != value) { _type = value; OnPropertyChanged(nameof(Type)); } }
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string name) =>
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
}
}