using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace IntelligentControlForsx.CodeGenerator { public abstract class TableModel : INotifyPropertyChanged { protected string deviceId = String.Empty; public event PropertyChangedEventHandler PropertyChanged; protected void NotifyPropertyChanged([CallerMemberName] String propertyName = "") { if (PropertyChanged != null) PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName)); } public TableModel(string deviceName) { deviceId = deviceName; } public abstract void bindingData(double[] vals); //public abstract BindingList createBindingList(); } }