public void TestAddingToPlotter() { HorizontalLine line = new HorizontalLine { Value = 0.2 }; ChartPlotter plotter = new ChartPlotter(); plotter.Children.Add(line); VerticalLine line2 = new VerticalLine { Value = 0.1 }; plotter.Children.Add(line2); VerticalRange range = new VerticalRange { Value1 = 0.1, Value2 = 0.3 }; plotter.Children.Add(range); RectangleHighlight rect = new RectangleHighlight { Bounds = new Rect(0, 0, 1, 1) }; plotter.Children.Add(rect); }
private void addVerticalLine(double value) { VerticalLine vl = new VerticalLine(); vl.Value = value; vl.Stroke = new SolidColorBrush(Colors.Green); vl.StrokeThickness = 1; vl.ToolTip = value.ToString(); this.chart.Children.Add(vl); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\..\MainWindow.xaml" ((sportsCare.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.groupBox2 = ((System.Windows.Controls.GroupBox)(target)); return; case 3: this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target)); return; case 4: this.menu1 = ((System.Windows.Controls.Menu)(target)); return; case 5: this.@new = ((System.Windows.Controls.MenuItem)(target)); #line 16 "..\..\..\MainWindow.xaml" [email protected] += new System.Windows.RoutedEventHandler(this.new_Click); #line default #line hidden return; case 6: this.open_excel = ((System.Windows.Controls.MenuItem)(target)); #line 17 "..\..\..\MainWindow.xaml" this.open_excel.Click += new System.Windows.RoutedEventHandler(this.open_Click); #line default #line hidden return; case 7: this.save_as_excel = ((System.Windows.Controls.MenuItem)(target)); #line 18 "..\..\..\MainWindow.xaml" this.save_as_excel.Click += new System.Windows.RoutedEventHandler(this.save_Click); #line default #line hidden return; case 8: this.showTable = ((System.Windows.Controls.MenuItem)(target)); #line 20 "..\..\..\MainWindow.xaml" this.showTable.Click += new System.Windows.RoutedEventHandler(this.showTable_Click); #line default #line hidden return; case 9: this.exit = ((System.Windows.Controls.MenuItem)(target)); #line 22 "..\..\..\MainWindow.xaml" this.exit.Click += new System.Windows.RoutedEventHandler(this.exit_Click); #line default #line hidden return; case 10: this.beginWork = ((System.Windows.Controls.MenuItem)(target)); #line 25 "..\..\..\MainWindow.xaml" this.beginWork.Click += new System.Windows.RoutedEventHandler(this.beginWork_Click); #line default #line hidden return; case 11: this.stop_work = ((System.Windows.Controls.MenuItem)(target)); #line 26 "..\..\..\MainWindow.xaml" this.stop_work.Click += new System.Windows.RoutedEventHandler(this.stopWork_Click); #line default #line hidden return; case 12: this.showInstruConn = ((System.Windows.Controls.MenuItem)(target)); #line 27 "..\..\..\MainWindow.xaml" this.showInstruConn.Click += new System.Windows.RoutedEventHandler(this.showInstruConn_Click); #line default #line hidden return; case 13: this.asciiCode = ((System.Windows.Controls.MenuItem)(target)); #line 29 "..\..\..\MainWindow.xaml" this.asciiCode.Click += new System.Windows.RoutedEventHandler(this.asciiCode_Click_1); #line default #line hidden return; case 14: this.notAscii = ((System.Windows.Controls.MenuItem)(target)); #line 30 "..\..\..\MainWindow.xaml" this.notAscii.Click += new System.Windows.RoutedEventHandler(this.notAscii_Click_1); #line default #line hidden return; case 15: this.dataAnalyse = ((System.Windows.Controls.MenuItem)(target)); #line 33 "..\..\..\MainWindow.xaml" this.dataAnalyse.Click += new System.Windows.RoutedEventHandler(this.dataAnalyse_Click); #line default #line hidden return; case 16: this.toolBar1 = ((System.Windows.Controls.ToolBar)(target)); return; case 17: #line 39 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.new_Click); #line default #line hidden return; case 18: #line 42 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.open_Click); #line default #line hidden return; case 19: #line 45 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.save_Click); #line default #line hidden return; case 20: #line 48 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.showInstruConn_Click); #line default #line hidden return; case 21: #line 51 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.beginWork_Click); #line default #line hidden return; case 22: #line 54 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.stopWork_Click); #line default #line hidden return; case 23: #line 57 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.showTable_Click); #line default #line hidden return; case 24: #line 60 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.dataAnalyse_Click); #line default #line hidden return; case 25: #line 63 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.exit_Click); #line default #line hidden return; case 26: this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 27: this.timeAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.HorizontalIntegerAxis)(target)); return; case 28: this.dataAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.VerticalIntegerAxis)(target)); return; case 29: this.dp = ((Microsoft.Research.DynamicDataDisplay.Charts.Shapes.DraggablePoint)(target)); #line 76 "..\..\..\MainWindow.xaml" this.dp.MouseMove += new System.Windows.Input.MouseEventHandler(this.dp_MouseMove); #line default #line hidden #line 76 "..\..\..\MainWindow.xaml" this.dp.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.dp_MouseUp); #line default #line hidden return; case 30: this.vl = ((Microsoft.Research.DynamicDataDisplay.Charts.VerticalLine)(target)); return; case 31: this.groupBox1 = ((System.Windows.Controls.GroupBox)(target)); return; case 32: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 33: this.rSO2Txt = ((System.Windows.Controls.TextBox)(target)); return; case 34: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 35: this.pulseTxt = ((System.Windows.Controls.TextBox)(target)); return; case 36: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 37: this.collectDataTime = ((System.Windows.Controls.Label)(target)); return; case 38: this.label5 = ((System.Windows.Controls.Label)(target)); return; case 39: this.label6 = ((System.Windows.Controls.Label)(target)); return; case 40: this.pulseAnalyse = ((System.Windows.Controls.TextBox)(target)); return; case 41: this.rSO2Analyse = ((System.Windows.Controls.TextBox)(target)); return; case 42: this.groupBox2_Copy = ((System.Windows.Controls.GroupBox)(target)); return; case 43: this.label5_Copy = ((System.Windows.Controls.Label)(target)); return; case 44: this.label6_Copy = ((System.Windows.Controls.Label)(target)); return; case 45: this.UserAge = ((System.Windows.Controls.TextBox)(target)); return; case 46: this.UserStablePul = ((System.Windows.Controls.TextBox)(target)); return; case 47: this.ageChanged = ((System.Windows.Controls.Button)(target)); #line 116 "..\..\..\MainWindow.xaml" this.ageChanged.Click += new System.Windows.RoutedEventHandler(this.ageChanged_Click_1); #line default #line hidden return; case 48: this.stablePulChanged = ((System.Windows.Controls.Button)(target)); #line 117 "..\..\..\MainWindow.xaml" this.stablePulChanged.Click += new System.Windows.RoutedEventHandler(this.stablePulChanged_Click_1); #line default #line hidden return; } this._contentLoaded = true; }