示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }