using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PipeGallery.Model { public class PipeMaterialInfo : ModelBase { private int _id; public int ID { get { return _id; } set { _id = value; } } private string _name; public string Name { get { return _name; } set { _name = value; } } private string _name2; public string Name2 { get { return _name2; } set { _name2 = value; } } private bool _isSelected; //是否选中 public bool IsSelected { get { return _isSelected; } set { if (_isSelected != value) { _isSelected = value; RaisePropertyChanged("IsSelected"); } } } private bool _isEnable; //是否选中 public bool IsEnabled { get { return _isEnable; } set { if (_isEnable != value) { _isEnable = value; RaisePropertyChanged("IsEnabled"); } } } } }