1234567891011121314151617181920212223242526272829 |
- 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<TableModel> createBindingList();
- }
- }
|