using System.Collections.Generic; using System.Windows.Documents; using GalaSoft.MvvmLight; using System; using System.Collections.ObjectModel; using Muchinfo.MTPClient.Data.Model.Analysis; namespace Muchinfo.MTPClient.Analysis.ViewModels { public class SubViewModelBase : ViewModelBase, IDisposable { public SubViewModelBase() { } /// /// 添加一笔交易数据 /// /// 交易数据 public virtual void AddSubPen(SubPenData subPenData) { } /// /// 更新数据源 /// /// public virtual void InitDataDataSourse(List subPen) { } /// /// 调整数据高度时更新显示的数据量 /// /// 显示的高度 public virtual void UpdateDisplaySource(double height, List subPen) { } /// /// 从父容器中进行初始化数据 /// //// public virtual void InitData() { } /// /// 执行与释放或重置非托管资源相关的应用程序定义的任务。 /// public virtual void Dispose() { base.Cleanup(); //if (_allSource != null) _allSource.Clear(); //_allSource = null; } } }