using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataLoader.Model { public class ViewData : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public string Ext { set; get; } public ViewData() { } private int _id; public int ID { set { if (_id != value) { _id = value; ChangProperty("ID"); } } get { return _id; } } private bool _checked; public bool Checked { set { if (_checked != value) { _checked = value; ChangProperty("Checked"); } } get { return _checked; } } private string _filePath; public string FilePath { set { if (_filePath != value) { _filePath = value; ChangProperty("FilePath"); } } get { return _filePath; } } private string _sizes; public string Sizes { set { if (_sizes != value) { _sizes = value; ChangProperty("Sizes"); } } get { return _sizes; } } private string _status; public string Status { set { if (_status != value) { _status = value; ChangProperty("Status"); } } get { return _status; } } private void ChangProperty(string propName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propName)); } } public SysMeta Meta { set; get; } } }