添加项目文件。
This commit is contained in:
40
MvdLiteSnoop/RowItem.cs
Normal file
40
MvdLiteSnoop/RowItem.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user