SubViewModelBase.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 
  2. using System.Collections.Generic;
  3. using System.Windows.Documents;
  4. using GalaSoft.MvvmLight;
  5. using System;
  6. using System.Collections.ObjectModel;
  7. using Muchinfo.MTPClient.Data.Model.Analysis;
  8. namespace Muchinfo.MTPClient.Analysis.ViewModels
  9. {
  10. public class SubViewModelBase : ViewModelBase, IDisposable
  11. {
  12. public SubViewModelBase()
  13. {
  14. }
  15. /// <summary>
  16. /// 添加一笔交易数据
  17. /// </summary>
  18. /// <param name="subPenData">交易数据</param>
  19. public virtual void AddSubPen(SubPenData subPenData)
  20. {
  21. }
  22. /// <summary>
  23. /// 更新数据源
  24. /// </summary>
  25. /// <param name="subPen"></param>
  26. public virtual void InitDataDataSourse(List<SubPenData> subPen)
  27. {
  28. }
  29. /// <summary>
  30. /// 调整数据高度时更新显示的数据量
  31. /// </summary>
  32. /// <param name="height">显示的高度</param>
  33. public virtual void UpdateDisplaySource(double height, List<SubPenData> subPen)
  34. {
  35. }
  36. /// <summary>
  37. /// 从父容器中进行初始化数据
  38. /// </summary>
  39. //// public virtual void InitData() { }
  40. /// <summary>
  41. /// 执行与释放或重置非托管资源相关的应用程序定义的任务。
  42. /// </summary>
  43. public virtual void Dispose()
  44. {
  45. base.Cleanup();
  46. //if (_allSource != null) _allSource.Clear();
  47. //_allSource = null;
  48. }
  49. }
  50. }