| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
-
- 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()
- {
-
- }
- /// <summary>
- /// 添加一笔交易数据
- /// </summary>
- /// <param name="subPenData">交易数据</param>
- public virtual void AddSubPen(SubPenData subPenData)
- {
- }
- /// <summary>
- /// 更新数据源
- /// </summary>
- /// <param name="subPen"></param>
- public virtual void InitDataDataSourse(List<SubPenData> subPen)
- {
-
- }
-
- /// <summary>
- /// 调整数据高度时更新显示的数据量
- /// </summary>
- /// <param name="height">显示的高度</param>
- public virtual void UpdateDisplaySource(double height, List<SubPenData> subPen)
- {
- }
- /// <summary>
- /// 从父容器中进行初始化数据
- /// </summary>
- //// public virtual void InitData() { }
- /// <summary>
- /// 执行与释放或重置非托管资源相关的应用程序定义的任务。
- /// </summary>
- public virtual void Dispose()
- {
- base.Cleanup();
- //if (_allSource != null) _allSource.Clear();
- //_allSource = null;
- }
- }
- }
|