1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Input;
- using Aitex.UI.Charting.ViewModel;
- using System.Windows;
- using Aitex.UI.Charting.Model;
- using Abt.Controls.SciChart;
- namespace Aitex.UI.Charting.Command
- {
- public class HidAllSeriesCommand : ICommand
- {
- public HidAllSeriesCommand()
- {
- }
- public bool CanExecute(object parameter)
- {
- return true;
- }
- #pragma warning disable 0067
- public event EventHandler CanExecuteChanged;
- #pragma warning restore 0067
- public void Execute(object parameter)
- {
- var commonViewModel = (CommonViewModel)parameter;
- foreach (var series in commonViewModel.RenderableSeries)
- {
- series.IsVisible = false;
- }
- }
- }
- }
|