public CurveDataContext CreateDataContext(string curveName, string displayName) { this.CurveName = curveName; this.dataContext = new CurveDataContext(curveName); this.DisplayName = displayName; return(this.dataContext); }
public CurveDataContext AddCurveDataContext(ChartView chartView) { this.dataContext = new CurveDataContext(chartView); this.dataContext.AppendCurvePoint += this.AppendCurvePointHandler; this.dataContext.ClearCurvePoints += this.ClearCurvePointsHandler; return(this.dataContext); }
public CurveDataContext CreateDataContext(string curveName, string displayName) { this.dataContext = new CurveDataContext(curveName); // Delegates this.dataContext.UpdateView += this.UpdateViewHandler; this.dataContext.AddCurvePoint += this.AddCurvePointHandler; this.dataContext.UpdateCurve += this.UpdateCurveHandler; this.dataContext.ClearCurve += this.ClearCurveHandler; this.DisplayName = displayName; return(this.dataContext); }
private void Window_Loaded_1(object sender, RoutedEventArgs e) { this.view1 = ChartView.AddCurveView("a", "A"); this.view1.Max = 150; this.view1.Min = 0; c1 = this.view1.CreateDataContext("a", "Hello"); //view1.Height = 200; this.view2 = ChartView.AddCurveView("b", "B"); //this.view2.Background = new SolidColorBrush(Colors.Green); c2 = this.view2.CreateDataContext("a", "World"); //view2.Height = 200; DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += new EventHandler(AnimatedPlot); timer.IsEnabled = true; cpuPerformance.CategoryName = "Processor"; cpuPerformance.CounterName = "% Processor Time"; cpuPerformance.InstanceName = "_Total"; }
private void Window_Loaded_1(object sender, RoutedEventArgs e) { this.view1 = ChartView.AddCurveView("a", "A"); this.view1.Max = 150; this.view1.Min = 0; c1 = this.view1.CreateDataContext("a", "Hello"); //view1.Height = 200; this.view2 = ChartView.AddCurveView("b", "B"); //this.view2.Background = new SolidColorBrush(Colors.Green); c2 = this.view2.CreateDataContext("a", "World"); //view2.Height = 200; DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += new EventHandler(AnimatedPlot); timer.IsEnabled = true; cpuPerformance.CategoryName = "Processor"; cpuPerformance.CounterName = "% Processor Time"; cpuPerformance.InstanceName = "_Total"; }
public CurveDataContext CreateDataContext(string curveName, string displayName) { this.dataContext = new CurveDataContext(curveName); // Delegates this.dataContext.UpdateView += this.UpdateViewHandler; this.dataContext.AddCurvePoint += this.AddCurvePointHandler; this.dataContext.UpdateCurve += this.UpdateCurveHandler; this.dataContext.ClearCurve += this.ClearCurveHandler; this.DisplayName = displayName; return this.dataContext; }
public CurveDataContext CreateDataContext(string curveName, string displayName) { this.CurveName = curveName; this.dataContext = new CurveDataContext(curveName); this.DisplayName = displayName; return this.dataContext; }
private void CurveViewLoaded(object sender, RoutedEventArgs e) { this.curveDataContext = this.CurveView.AddCurveDataContext(this); }