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 ShowAllSeriesCommand : ICommand { public ShowAllSeriesCommand() { } 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 = true; } } } }