public AnomalyInfo(int line, OxyPlot.Wpf.Annotation a, List <DataPoint> p) { //correlatedFeatures = info; anomalyLine = line; anno = a; points = p; }
private void parameterList_selectionChanged(object sender, SelectionChangedEventArgs e) { playVM.displayGraph(parameterList.SelectedItem.ToString()); anomaliesGraph.Annotations.Clear(); OxyPlot.Wpf.Annotation shape = playVM.calculateShape(); this.anomaliesGraph.ResetAllAxes(); //this.playVM.updateAxes(); if (shape == null) { return; } anomaliesGraph.Annotations.Add(shape); anomaliesGraph.InvalidatePlot(true); }
private void btn_load_dll_Click(object sender, RoutedEventArgs e) { playVM.load_dll(); int index = playVM.getCurrentPropertyIndex(); playVM.displayGraph(parameterList.Items[playVM.getCurrentPropertyIndex()].ToString()); anomaliesGraph.Annotations.Clear(); OxyPlot.Wpf.Annotation shape = playVM.calculateShape(); this.anomaliesGraph.ResetAllAxes(); //this.playVM.updateAxes(); if (shape == null) { return; } anomaliesGraph.Annotations.Add(shape); anomaliesGraph.InvalidatePlot(true); }
private void btn_play_click(object sender, RoutedEventArgs e) { try { OxyPlot.Wpf.Annotation shape = playVM.calculateShape(); if (shape == null) { playVM.play(); return; } anomaliesGraph.Annotations.Clear(); anomaliesGraph.Annotations.Add(shape); anomaliesGraph.InvalidatePlot(true); } catch (Exception) { } playVM.play(); }
// public void listeningFunc() { temp = vm.VM_Investigated_Annotation; if (this.fourthGraph.Annotations.Count > 0) { this.fourthGraph.Annotations.RemoveAt(0); this.fourthGraph.Annotations.Add(temp); //this.fourthGraph.Visibility = System.Windows.Visibility.Visible; } else { Dispatcher.Invoke(() => { this.fourthGraph.Annotations.Add(temp); }); } }