コード例 #1
0
 public CurveDataContext CreateDataContext(string curveName, string displayName)
 {
     this.CurveName   = curveName;
     this.dataContext = new CurveDataContext(curveName);
     this.DisplayName = displayName;
     return(this.dataContext);
 }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
0
ファイル: MainWindow.xaml.cs プロジェクト: mrddos/planisphere
        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";
        }
コード例 #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";
        }
コード例 #6
0
ファイル: CurveView.xaml.cs プロジェクト: mrddos/planisphere
        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;
        }
コード例 #7
0
ファイル: SearchCurveView.xaml.cs プロジェクト: oisy/scada
 public CurveDataContext CreateDataContext(string curveName, string displayName)
 {
     this.CurveName = curveName;
     this.dataContext = new CurveDataContext(curveName);
     this.DisplayName = displayName;
     return this.dataContext;
 }
コード例 #8
0
 private void CurveViewLoaded(object sender, RoutedEventArgs e)
 {
     this.curveDataContext = this.CurveView.AddCurveDataContext(this);
 }