Ejemplo n.º 1
0
 public CurveDataContext CreateDataContext(string curveName, string displayName)
 {
     this.CurveName   = curveName;
     this.dataContext = new CurveDataContext(curveName);
     this.DisplayName = displayName;
     return(this.dataContext);
 }
Ejemplo n.º 2
0
        public CurveDataContext AddCurveDataContext(ChartView chartView)
        {
            this.dataContext = new CurveDataContext(chartView);
            this.dataContext.AppendCurvePoint += this.AppendCurvePointHandler;
            this.dataContext.ClearCurvePoints += this.ClearCurvePointsHandler;

            return(this.dataContext);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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";
        }
Ejemplo n.º 5
0
        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";
        }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
 public CurveDataContext CreateDataContext(string curveName, string displayName)
 {
     this.CurveName = curveName;
     this.dataContext = new CurveDataContext(curveName);
     this.DisplayName = displayName;
     return this.dataContext;
 }
Ejemplo n.º 8
0
 private void CurveViewLoaded(object sender, RoutedEventArgs e)
 {
     this.curveDataContext = this.CurveView.AddCurveDataContext(this);
 }