添加项目文件。
This commit is contained in:
40
SamplePre.Models/Ext/tube_input_ext.cs
Normal file
40
SamplePre.Models/Ext/tube_input_ext.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Models.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SamplePre.Models.Ext
|
||||
{
|
||||
public class tube_input_ext : tube_input,INotifyPropertyChanged
|
||||
{
|
||||
//public bool isChecked { get; set; } = false;
|
||||
|
||||
public string tube_type_name { get; set; }
|
||||
|
||||
|
||||
private bool isSelected = false;
|
||||
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
|
||||
public bool IsSelected
|
||||
{
|
||||
get { return isSelected; }
|
||||
set
|
||||
{
|
||||
isSelected = value;
|
||||
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user