StatisticsViewModel.cs 563 B

1234567891011121314151617181920
  1. using Prism.Commands;
  2. using TeamAAS.FlowEngine.Execution;
  3. namespace TeamAAS.ViewModels
  4. {
  5. /// <summary>
  6. /// 产量统计页 ViewModel(绑定 FlowRunner 的真实运行统计)。
  7. /// </summary>
  8. public class StatisticsViewModel : TeamAAS.BindableBase
  9. {
  10. public RunStatistics Stats => RunStatistics.Instance;
  11. public DelegateCommand ResetStatisticsCommand { get; }
  12. public StatisticsViewModel()
  13. {
  14. ResetStatisticsCommand = new DelegateCommand(() => RunStatistics.Instance.Reset());
  15. }
  16. }
  17. }