TableModel.cs 804 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.ComponentModel;
  3. using System.Runtime.CompilerServices;
  4. namespace IntelligentControlForsx.CodeGenerator
  5. {
  6. public abstract class TableModel : INotifyPropertyChanged
  7. {
  8. protected string deviceId = String.Empty;
  9. public event PropertyChangedEventHandler PropertyChanged;
  10. protected void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
  11. {
  12. if (PropertyChanged != null)
  13. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  14. }
  15. public TableModel(string deviceName)
  16. {
  17. deviceId = deviceName;
  18. }
  19. public abstract void bindingData(double[] vals);
  20. //public abstract BindingList<TableModel> createBindingList();
  21. }
  22. }