public StoryFilteringViewModel(IStateFilteringProvider stateFilteringProvider) { _stateFilteringProvider = stateFilteringProvider; DisplayName = "Story and state filtering"; MoveStateToFiltered = ReactiveCommand.CreateFromTask(MoveStateToFilteredInner); MoveStateFromFiltered = ReactiveCommand.CreateFromTask(MoveStateFromFilteredInner); MoveStateToReset = ReactiveCommand.CreateFromTask(MoveStateToResetInner); MoveStateFromReset = ReactiveCommand.CreateFromTask(MoveStateFromResetInner); MoveFilteredStateLower = ReactiveCommand.CreateFromTask(MoveFilteredStateLowerInner); MoveFilteredStateHigher = ReactiveCommand.CreateFromTask(MoveFilteredStateHigherInner); }
public IssuesGridViewModel(TasksSource tasksSource, IStateFilteringProvider stateFilteringProvider, ICurrentProject currentProject) { _tasksSource = tasksSource; _stateFilteringProvider = stateFilteringProvider; _currentProject = currentProject; DisplayName = "Issues grid"; Issues = new ObservableCollection <dynamic>(); _currentProject.ProjectKeyChanged += async(sender, args) => { if (IsActive) { await Update(); } }; }
public CumulativeFlowViewModel(TasksSource source, IStateFilteringProvider stateFilteringProvider, ICurrentProject currentProject) { _source = source; _stateFilteringProvider = stateFilteringProvider; _currentProject = currentProject; DisplayName = "Cumulative flow"; SeriesCollection = new SeriesCollection(); XFormatter = val => new DateTime((long)val).ToShortDateString(); _currentProject.ProjectKeyChanged += async(sender, args) => { if (IsActive) { await Update(); } }; }