private void CheckBoxUnchecked(object sender, System.Windows.RoutedEventArgs e) { var checkBox = e.OriginalSource as CheckBox; DatiDispositivo ph = checkBox?.DataContext as DatiDispositivo; if (ph != null) { chartsManager.RemoveSeries(ph.MAC_Address); } }
private void CheckBoxChecked(object sender, System.Windows.RoutedEventArgs e) { long endRange = chartsManager.animationCurrTimestamp; long startRange = chartsManager.animationStartTimestamp; var checkBox = e.OriginalSource as CheckBox; DatiDispositivo ph = checkBox?.DataContext as DatiDispositivo; if (ph != null) { chartsManager.AddSeries(ph.MAC_Address); } }