Esempio n. 1
0
        public void TestDateTimeWithTwoDataPoints()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Random rand = new Random();

            DataSeries dataSeries = new DataSeries();

            dataSeries.DataPoints.Add(new DataPoint() { XValue = new DateTime(2009, 1, 1), YValue = rand.Next(10, 100) });
            dataSeries.DataPoints.Add(new DataPoint() { XValue = new DateTime(2009, 1, 2), YValue = rand.Next(10, 100) });

            chart.Series.Add(dataSeries);

            Window window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                Assert.AreEqual(2, chart.Series[0].DataPoints.Count);
                window.Dispatcher.InvokeShutdown();
                window.Close();
            }
        }
Esempio n. 2
0
        public void TestingTitleBackgroundPropertyChanged()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);

            Title title = new Title();
            title.Text = "Title1";
            title.FontSize = 15;
            title.VerticalAlignment = VerticalAlignment.Top;
            title.HorizontalAlignment = HorizontalAlignment.Center;
            title.Background = new SolidColorBrush(Colors.Magenta);
            chart.Titles.Add(title);

            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            TestPanel.Children.Add(chart);

            EnqueueConditional(() => { return _isLoaded; });
            EnqueueDelay(_sleepTime);

            title.PropertyChanged += (object sender, System.ComponentModel.PropertyChangedEventArgs e)
                =>
            {
                Assert.AreEqual("Background", e.PropertyName);
            };

            EnqueueCallback(() => title.Background = new SolidColorBrush(Colors.Yellow));

            EnqueueTestComplete();
        }
Esempio n. 3
0
        public void CheckDefaultLineThickness()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);
            Ticks tick = new Ticks();
            Axis axis = new Axis();
            axis.Ticks.Add(tick);
            chart.AxesX.Add(axis);
              
            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Window window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                Assert.AreEqual(0.5, tick.LineThickness);
            }

            window.Dispatcher.InvokeShutdown();
            window.Close();
        }
Esempio n. 4
0
        public Chart CreateChart(ChartInformation ci)
        {
            Chart m_chart = new Chart();
            m_chart.BorderThickness = ci.m_BorderThickness;
            m_chart.Theme = ci.m_Theme;
            m_chart.View3D = ci.m_View3D;

            Axis m_axisX = new Axis();
            m_axisX.Title = ci.m_axisXTitle;
            m_chart.AxesX.Add(m_axisX);

            Axis m_asixY = new Axis();
            m_asixY.Title = ci.m_axisYTitle;
            m_asixY.Enabled = true;
            m_asixY.StartFromZero = true;
            m_asixY.AxisType = AxisTypes.Primary;
            m_asixY.AxisMaximum = ci.m_axisYMaximum;
            m_asixY.Interval = ci.m_axisYInterval;
            m_chart.AxesY.Add(m_asixY);
            for(int i = 0;i<ci.dsc.Count;i++)
            {
                DataSeries ds = new DataSeries();
                ds.LegendText = ci.dsc[i].LegendText;
                ds.RenderAs = ci.dsc[i].RenderAs;
                ds.AxisYType = ci.dsc[i].AxisYType;
                ds.DataPoints = new DataPointCollection(ci.dsc[i].DataPoints);
                m_chart.Series.Add(ds);
            }
            m_chart.Rendered+=new EventHandler(chart_Rendered);
            return m_chart;
        }
Esempio n. 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lb_title = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.MyChart_TotalSpendSummary = ((Visifire.Charts.Chart)(target));
                return;

            case 3:
                this.btn_close = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\..\..\..\..\Departments\Purchasing\PO\PO_Report.xaml"
                this.btn_close.Click += new System.Windows.RoutedEventHandler(this.btn_close_Click_1);

            #line default
            #line hidden
                return;

            case 4:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\..\..\..\..\Departments\Purchasing\PO\PO_Report.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 6
0
        public void OrientationDefaultValue()
        {
            Chart chart = new Chart();
            
            chart.Width = 500;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);

            TrendLine trendLine = TrendLineToTest;
            chart.TrendLines.Add(trendLine);
                 
            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Window window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                Assert.AreEqual(Orientation.Horizontal, trendLine.Orientation);
            }

            window.Dispatcher.InvokeShutdown();
            window.Close();
        }
 //柱状图
 private void barGraph_Click(object sender, RoutedEventArgs e)
 {
     graphContainer.Children.Clear();
     Chart chart = new Chart();
     chart.Watermark = false;
     chart.View3D = true;
     chart.Width = 300;
     chart.Height = 200;
     Title title = new Title();
     title.Text = "人口类别统计图";
     chart.Titles.Add(title);
     for (int i = 0; i < 8; i++)
     {
         DataSeries dataSeries = new DataSeries();
         dataSeries.ShowInLegend = false;
         dataSeries.RenderAs = RenderAs.Column;
         for (int loopIndex = 0; loopIndex < 3; loopIndex++)
         {
             DataPoint dataPoint = new DataPoint();
             dataPoint.AxisXLabel = pop[loopIndex];
             dataPoint.YValue = points[i, loopIndex];
             dataSeries.DataPoints.Add(dataPoint);
         }
         chart.Series.Add(dataSeries);
     }
     //将柱状图添加到 Grid 控件以固定位置
     graphContainer.VerticalAlignment = VerticalAlignment.Top;
     graphContainer.HorizontalAlignment = HorizontalAlignment.Left;
     graphContainer.Children.Add(chart);
 }
Esempio n. 8
0
        public void LineThicknessDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);
            ChartGrid grid = new ChartGrid();
            Axis axis = new Axis();
            axis.Grids.Add(grid);
            chart.AxesY.Add(axis);
            
            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Window window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                Assert.AreEqual(0.25, grid.LineThickness);
            }

            window.Dispatcher.InvokeShutdown();
            window.Close();
        }
Esempio n. 9
0
        SolidColorBrush twoSDBrush = new SolidColorBrush(Color.FromArgb(50,3, 3, 247)); //平均曲线颜色,红色

        #endregion Fields

        #region Constructors

        public PageAvgCurve()
        {
            InitializeComponent();

            chart1 = new Chart();
            chart2 = new Chart();
            chart2.ScrollingEnabled = chart1.ScrollingEnabled = false;
            chart1.BorderThickness = chart2.BorderThickness = new Thickness(0, 0, 0, 0);

            Axis yOACAxis = new Axis();
            Axis yEACAxis = new Axis();
            yOACAxis.Suffix = yEACAxis.Suffix = "(Nm)";
            chart1.AxesY.Add(yOACAxis);
            chart2.AxesY.Add(yEACAxis);

            Axis xAxisOAC = new Axis();
            Axis xAxisEAC = new Axis();
            xAxisEAC.AxisMinimum = xAxisOAC.AxisMinimum = 0;
            xAxisOAC.AxisMaximum = xAxisEAC.AxisMaximum = 100;
            xAxisEAC.Suffix = xAxisOAC.Suffix = "%";
            chart1.AxesX.Add(xAxisOAC);
            chart2.AxesX.Add(xAxisEAC);

            grid1.Children.Add(chart1);
            grid2.Children.Add(chart2);
        }
Esempio n. 10
0
        public void TestDateTimeWithTwoDataPoints()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Random rand = new Random();

            TestPanel.Children.Add(chart);

            EnqueueConditional(() => { return _isLoaded; });
            EnqueueDelay(_sleepTime);

            EnqueueCallback(() =>
            {
                DataSeries dataSeries = new DataSeries();

                dataSeries.DataPoints.Add(new DataPoint() { XValue = new DateTime(2009, 1, 1), YValue = rand.Next(10, 100) });
                dataSeries.DataPoints.Add(new DataPoint() { XValue = new DateTime(2009, 1, 2), YValue = rand.Next(10, 100) });

                chart.Series.Add(dataSeries);
            });

            EnqueueCallback(() =>
            {
                Assert.AreEqual(2, chart.Series[0].DataPoints.Count);
            });

            EnqueueDelay(_sleepTime);
            EnqueueTestComplete();
        }
Esempio n. 11
0
        //饼状图:
        public void CreateChartPie(string name, List <string> valuex, List <string> valuey)
        {
                        //创建一个图标
                        Visifire.Charts.Chart chart = new Visifire.Charts.Chart();
                        //设置图标的宽度和高度
                        chart.Width = 580;

            chart.Height = 380;
            chart.Margin = new Thickness(100, 5, 10, 5);
                                                        //是否启用打印和保持图片
                        chart.ToolBarEnabled = false;
                                                        //设置图标的属性
                        chart.ScrollingEnabled = false; //是否启用或禁用滚动
                        chart.View3D           = true;  //3D效果显示
                                                        //创建一个标题的对象
                        Title title = new Title();
                                                        //设置标题的名称
                        title.Text = name;

            title.Padding = new Thickness(0, 10, 5, 0);
                        //向图标添加标题
                        chart.Titles.Add(title);

                                                            //Axis yAxis = new Axis();
                                                            ////设置图标中Y轴的最小值永远为0          
                                                            //yAxis.AxisMinimum = 0;
                                                            ////设置图表中Y轴的后缀         
                                                            //yAxis.Suffix = "斤";
                                                            //chart.AxesY.Add(yAxis);
                                                            // 创建一个新的数据线。              
                        DataSeries dataSeries = new DataSeries();
                                                            // 设置数据线的格式
                        dataSeries.RenderAs = RenderAs.Pie; //柱状Stacked

                                                            // 设置数据点             
                        DataPoint dataPoint;

            for (int i = 0; i < valuex.Count; i++)
            {
                                // 创建一个数据点的实例。                  
                                dataPoint = new DataPoint();
                                // 设置X轴点                   
                                dataPoint.AxisXLabel = valuex[i];
                dataPoint.LegendText = "##" + valuex[i];
                                //设置Y轴点                  
                                dataPoint.YValue = double.Parse(valuey[i]);
                                //添加一个点击事件       
                                dataPoint.MouseLeftButtonDown += new MouseButtonEventHandler(dataPoint_MouseLeftButtonDown);
                                //添加数据点                  
                                dataSeries.DataPoints.Add(dataPoint);
            }
                        // 添加数据线到数据序列。               
                        chart.Series.Add(dataSeries);

                        //将生产的图表增加到Grid,然后通过Grid添加到上层Grid.          
                        Grid gr = new Grid();

            gr.Children.Add(chart);
            Simon.Children.Add(gr);
        }
Esempio n. 12
0
        //[Ignore, Bug("Visifire")]
        public void BackgroundDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 400;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);

            Title title = new Title();
            chart.Titles.Add(title);
                 
            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Window window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                Common.AssertBrushesAreEqual(new SolidColorBrush(Colors.Transparent), chart.Titles[0].Background);
            }

            window.Dispatcher.InvokeShutdown();
            window.Close();
        }
Esempio n. 13
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.chartC = ((Visifire.Charts.Chart)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 14
0
        public CorrectDataWindow()
        {
            InitializeComponent();
            chart = new Chart();
            chart.BorderThickness = new Thickness(0, 0, 1, 0);

            tlEnd.LineThickness= tlStart.LineThickness = 1.5;
            tlSelectedPoint.LineThickness = 0.5;
            tlEnd.LineColor=tlEnd.LabelFontColor= tlStart.LineColor = tlStart.LabelFontColor = new SolidColorBrush(Colors.Green);
            tlSelectedPoint.LineColor = tlSelectedPoint.LabelFontColor = new SolidColorBrush(Colors.Black);
            tlEnd.Background= tlStart.Background = null;
            tlEnd.Orientation= tlSelectedPoint.Orientation = tlStart.Orientation = Orientation.Vertical;
            tlStart.LabelText = "起点";
            tlEnd.LabelText = "终点";

            MenuItem miGroup1 = new MenuItem();
            miGroup1.Header = "测试起终点判定";

            MenuItem miGroup2 = new MenuItem();
            miGroup2.Header = "数据平滑处理";

            MenuItem miGroup3 = new MenuItem();
            miGroup3.Header = "单次起终点校准";

            miSetStart.Header = "设为测试起点";
            miSetEnd.Header = "设为测试终点";
            miGroup1.Items.Add(miSetStart);
            miGroup1.Items.Add(miSetEnd);

            miCheckStart.Header = "设为平滑处理起点";
            miCheckEnd.Header = "设为平滑处理终点";
            miGroup2.Items.Add(miCheckStart);
            miGroup2.Items.Add(miCheckEnd);

            miNextStart = new MenuItem();
            miNextStart.Header = "设为下一次起点";
            miPreEnd = new MenuItem();
            miPreEnd.Header = "设为上一次终点";
            miGroup3.Items.Add(miNextStart);
            miGroup3.Items.Add(miPreEnd);

            dpMenu.Items.Add(miGroup1);
            Separator sp = new Separator();
            dpMenu.Items.Add(sp);
            dpMenu.Items.Add(miGroup2);
            Separator sp1 = new Separator();
            dpMenu.Items.Add(sp1);
            dpMenu.Items.Add(miGroup3);

            miSetStart.Click += new RoutedEventHandler(miSetStart_Click);
            miSetEnd.Click += btnSetEnd_Click;
            miCheckStart.Click += new RoutedEventHandler(checkStart_Click);
            miCheckEnd.Click += new RoutedEventHandler(checkEnd_Click);

            miPreEnd.Click += new RoutedEventHandler(miPreEnd_Click);
            miNextStart.Click += new RoutedEventHandler(miNextStart_Click);
        }
Esempio n. 15
0
 public ShowAvgCurveWindow()
 {
     InitializeComponent();
     chart1 = new Chart();
     chart2 = new Chart();
     chart2.ScrollingEnabled = chart1.ScrollingEnabled = false;
     grid1.Children.Add(chart1);
     grid2.Children.Add(chart2);
 }
        public AvgCurveCompareWindow()
        {
            InitializeComponent();
            WindowHelper.RepairWindowBehavior(this);

            dictBLL = new BLL.TB_Dict();

            chartOdd = new Chart();
            chartEven = new Chart();
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.uChart = ((Visifire.Charts.Chart)(target));
         return;
     }
     this._contentLoaded = true;
 }
Esempio n. 18
0
        public void DataPointDecimalXValueChecking()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            Axis axisX = new Axis();
            axisX.Interval = 1;
            chart.AxesX.Add(axisX);
                   
            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Random rand = new Random();

            DataSeries dataSeries1 = new DataSeries();

            List<Double> xList = new List<Double>();
            List<Double> yList = new List<Double>();
            Double y = 0;
            for (Double i = 0; i < 10; i++)
            {
                DataPoint dataPoint = new DataPoint();
                dataPoint.XValue = i + 1;
                xList.Add(i);
                dataPoint.YValue = (y = rand.Next(-100, 100));
                yList.Add(y);
                dataSeries1.DataPoints.Add(dataPoint);
            }

            chart.Series.Add(dataSeries1);

            DataSeries dataSeries2 = new DataSeries();
            dataSeries2.RenderAs = RenderAs.Column;

            Double j = 0.5;
            for (Int32 i = 0; i < 10; i++)
            {
                DataPoint dataPoint = new DataPoint();
                dataPoint.XValue = j;
                dataPoint.YValue = yList[i];
                dataSeries2.DataPoints.Add(dataPoint);
                j++;
            }
            chart.Series.Add(dataSeries2);
             
            Window window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                window.Dispatcher.InvokeShutdown();
                window.Close();
            }
        }
Esempio n. 19
0
        /// <summary>
        /// Create Polar series
        /// </summary>
        /// <param name="chart"></param>
        /// <param name="series"></param>
        /// <param name="polarCanvas"></param>
        /// <param name="labelCanvas"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="plotGroup"></param>
        /// <param name="circularPlotDetails"></param>
        private static void CreatePolarSeries(Chart chart, DataSeries series, Canvas polarCanvas, Canvas labelCanvas, Double width, Double height, PlotGroup plotGroup, CircularPlotDetails circularPlotDetails)
        {
            List<List<DataPoint>> brokenLineDataPointsGroup = GetBrokenLineDataPointsGroup(series, circularPlotDetails, plotGroup);
            foreach (List<DataPoint> dataPointList in brokenLineDataPointsGroup)
            {
                foreach (DataPoint dataPoint in dataPointList)
                    DrawMarker(dataPoint, labelCanvas, width, height, circularPlotDetails.Center);

                DrawDataSeriesPath(series, dataPointList, polarCanvas);
            }
        }
Esempio n. 20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lb_title = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.cb_employee = ((System.Windows.Controls.ComboBox)(target));

            #line 14 "..\..\..\..\..\Departments\Report\PTS_Report.xaml"
                this.cb_employee.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_employee_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.cb_Projects = ((System.Windows.Controls.ComboBox)(target));

            #line 16 "..\..\..\..\..\Departments\Report\PTS_Report.xaml"
                this.cb_Projects.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_Projects_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.MyChart_TotalSpendSummary = ((Visifire.Charts.Chart)(target));
                return;

            case 5:
                this.btn_TotalHourAgenda = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\..\..\..\Departments\Report\PTS_Report.xaml"
                this.btn_TotalHourAgenda.Click += new System.Windows.RoutedEventHandler(this.btn_TotalHourAgenda_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_TotalHourSpend = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\..\..\..\Departments\Report\PTS_Report.xaml"
                this.btn_TotalHourSpend.Click += new System.Windows.RoutedEventHandler(this.btn_TotalHourSpend_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 21
0
        private Chart progressChart; //过程曲线图表

        #endregion Fields

        #region Constructors

        public ShowChartWindow()
        {
            InitializeComponent();
            WindowHelper.RepairWindowBehavior(this);
            progressChart = new Chart();
            maxMomentChart = new Chart();
            maxMomentLineChart = new Chart();
            oddAvgCurveChart = new Chart();
            evenAvgCurveChart = new Chart();

            dictBLL = new BLL.TB_Dict();
        }
Esempio n. 22
0
        public void ColumnChartPerformanceTest()
        {
            Double totalDuration = 0;
            DateTime start = DateTime.UtcNow;

            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;
            chart.View3D = false;

            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Axis axisX = new Axis();
            axisX.Interval = 1;
            chart.AxesX.Add(axisX);

            Random rand = new Random();

            Int32 numberOfSeries = 0;
            DataSeries dataSeries = null;
            Int32 numberofDataPoint = 0;

            String msg = Common.AssertAverageDuration(100, 1, delegate
            {
                dataSeries = new DataSeries();
                dataSeries.RenderAs = RenderAs.Column;

                for (Int32 i = 0; i < 1000; i++)
                {
                    DataPoint dataPoint = new DataPoint();
                    dataPoint.AxisXLabel = "a" + i;
                    dataPoint.YValue = rand.Next(-100, 100);
                    dataSeries.DataPoints.Add(dataPoint);
                    numberofDataPoint++;
                }
                numberOfSeries++;
                chart.Series.Add(dataSeries);
            });

            window = new Window();
            window.Content = chart;
            window.Show();
            if (_isLoaded)
            {
                DateTime end = DateTime.UtcNow;
                totalDuration = (end - start).TotalSeconds;

                MessageBox.Show("Total Chart Loading Time: " + totalDuration + "s" + "\n"  + "Number of Render Count: " + chart.ChartArea._renderCount + "\n" + "Series Calculation: " + msg);
            }
            window.Dispatcher.InvokeShutdown();
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Map;component/Chart1.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.Chart = ((Visifire.Charts.Chart)(this.FindName("Chart")));
     this.DataSeries = ((Visifire.Charts.DataSeries)(this.FindName("DataSeries")));
     this.tb = ((System.Windows.Controls.TextBox)(this.FindName("tb")));
     this.MyGrid = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("MyGrid")));
 }
Esempio n. 24
0
        public void Balance(int earning, int expense)
        {
            var chart = new Chart {Width = 500, Height = 300, View3D = true};
            chart.Titles.Add(new Title {Text = "Cân bằng tài chính"});
            var dataSeries = new DataSeries {RenderAs = RenderAs.Column};

            dataSeries.DataPoints.Add(new DataPoint {YValue = earning, AxisXLabel = "Tổng thu nhập"});
            dataSeries.DataPoints.Add(new DataPoint {YValue = expense, AxisXLabel = "Tổng chi tiêu"});

            chart.Series.Add(dataSeries);
            LayoutRoot.Children.Clear();
            LayoutRoot.Children.Add(chart);
        }
Esempio n. 25
0
        public void TestDataPointPropertyChanged()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            _isLoaded = false;
            chart.Loaded += new RoutedEventHandler(chart_Loaded);

            Random rand = new Random();

            TestPanel.Children.Add(chart);

            EnqueueConditional(() => { return _isLoaded; });
            EnqueueDelay(_sleepTime);

            DataSeries dataSeries = new DataSeries();
            DataPoint dataPoint = null;

            for (Int32 i = 0; i < 10; i++)
            {
                dataPoint = new DataPoint();
                dataPoint.XValue = i + 1;
                dataPoint.YValue = rand.Next(10, 100);

                dataPoint.PropertyChanged += delegate(Object sender, System.ComponentModel.PropertyChangedEventArgs e)
                {
                    Assert.IsNotNull(e.PropertyName);
                    if (e.PropertyName == "XValue")
                        Assert.AreEqual("XValue", e.PropertyName);
                    else if (e.PropertyName == "YValue")
                        Assert.AreEqual("YValue", e.PropertyName);
                    else
                        Assert.IsNotNull(e.PropertyName);
                };

                dataSeries.DataPoints.Add(dataPoint);
            }

            chart.Series.Add(dataSeries);

            EnqueueCallback(() =>
            {
                dataPoint.XValue = 10;
                dataPoint.YValue = rand.Next(-100, 100);
            });

            EnqueueDelay(_sleepTime);
            EnqueueTestComplete();

        }
Esempio n. 26
0
        public void LineThicknessDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);

            EnqueueDelay(_sleepTime);
            CreateAsyncTask(chart,
                () => Assert.AreEqual(0.25, chart.AxesY[0].Grids[0].LineThickness));

            EnqueueTestComplete();
        }
Esempio n. 27
0
        public void LineColorDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);

            EnqueueDelay(_sleepTime);
            CreateAsyncTask(chart,
                () => Common.AssertBrushesAreEqual(new SolidColorBrush(Colors.Gray), chart.AxesY[0].Grids[0].LineColor));

            EnqueueTestComplete();
        }
Esempio n. 28
0
        public void ScrollBarOffsetVerticalChartDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 400;
            chart.Height = 300;

            Common.CreateAndAddDataSeriesWithMoreDataPoints(chart);

            EnqueueDelay(_sleepTime);
            CreateAsyncTask(chart,
                () => Assert.AreEqual(0, chart.AxesX[0].ScrollBarOffset));

            EnqueueTestComplete();
        }
Esempio n. 29
0
 public ChartWindow()
 {
     InitializeComponent();
     progressChart = new Chart();
     maxColumnChart = new Chart();
     maxLineChart = new Chart();
     oddAvgChart = new Chart();
     evenAvgChart = new Chart();
     double screenWidth = SystemParameters.PrimaryScreenWidth;
     this.Left = screenWidth + 10;
     timer = new DispatcherTimer();
     timer.Interval = new TimeSpan(1);
     timer.Tick += new EventHandler(timer_Tick);
 }
Esempio n. 30
0
        public void TextAlignmentDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 400;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);
            EnqueueDelay(_sleepTime);

            CreateAsyncTask(chart,
                () => Assert.AreEqual(TextAlignment.Left, chart.AxesX[0].AxisLabels.TextAlignment));

            EnqueueTestComplete();
        }
Esempio n. 31
0
        public void HrefDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            CreateAndAddDefaultDataSeries(chart);

            EnqueueDelay(_sleepTime);
            CreateAsyncTask(chart,
                () => Assert.IsNull(chart.Legends[0].Href));

            EnqueueTestComplete();
        }
Esempio n. 32
0
        public void HrefTargetDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            CreateAndAddDefaultDataSeries(chart);

            EnqueueDelay(_sleepTime);
            CreateAsyncTask(chart,
                () => Assert.AreEqual(Visifire.Commons.HrefTargets._self, chart.Legends[0].HrefTarget));

            EnqueueTestComplete();
        }
Esempio n. 33
0
        public void LabelMarginDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 500;
            chart.Height = 300;

            CreateAndAddDefaultDataSeries(chart);

            EnqueueDelay(_sleepTime);
            CreateAsyncTask(chart,
                () => Assert.AreEqual(6, chart.Legends[0].LabelMargin));

            EnqueueTestComplete();
        }
Esempio n. 34
0
        public void IntervalDefaultValue()
        {
            Chart chart = new Chart();
            chart.Width = 400;
            chart.Height = 300;

            Common.CreateAndAddDefaultDataSeries(chart);
            EnqueueDelay(_sleepTime);

            CreateAsyncTask(chart,
                () => Assert.AreEqual(Double.NaN, chart.AxesX[0].AxisLabels.Interval));

            EnqueueTestComplete();
        }
Esempio n. 35
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Talentos_Master;component/frmRadar.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.textInfo   = ((System.Windows.Documents.Run)(this.FindName("textInfo")));
     this.txtTitle1  = ((System.Windows.Documents.Run)(this.FindName("txtTitle1")));
     this.txtTitle2  = ((System.Windows.Documents.Run)(this.FindName("txtTitle2")));
     this.canv       = ((System.Windows.Controls.Canvas)(this.FindName("canv")));
     this.MyChart    = ((Visifire.Charts.Chart)(this.FindName("MyChart")));
 }
Esempio n. 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.gd_output = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.dp_from = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 4:
                this.dp_to = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 5:
                this.btn_search = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\..\Report\usage.xaml"
                this.btn_search.Click += new System.Windows.RoutedEventHandler(this.btn_search_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.cb_reportType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.MyChart = ((Visifire.Charts.Chart)(target));
                return;

            case 8:
                this.Inventory_Pie = ((System.Windows.Controls.WrapPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 37
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Logistics_system;component/chart1/ChartControl.xaml", System.UriKind.Relative));
     this.dialogPanel1 = ((EasySL.Controls.DialogPanel)(this.FindName("dialogPanel1")));
     this.canvas       = ((System.Windows.Controls.Canvas)(this.FindName("canvas")));
     this.label1       = ((System.Windows.Controls.Label)(this.FindName("label1")));
     this.buffer       = ((System.Windows.Controls.Button)(this.FindName("buffer")));
     this.xaxis        = ((System.Windows.Controls.ComboBox)(this.FindName("xaxis")));
     this.yaxis        = ((System.Windows.Controls.ComboBox)(this.FindName("yaxis")));
     this.mychart      = ((Visifire.Charts.Chart)(this.FindName("mychart")));
     this.image1       = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.image2       = ((System.Windows.Controls.Image)(this.FindName("image2")));
     this.radioButton1 = ((System.Windows.Controls.RadioButton)(this.FindName("radioButton1")));
     this.radioButton2 = ((System.Windows.Controls.RadioButton)(this.FindName("radioButton2")));
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 2:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.textBlock_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\classScore.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Talentos_Master;component/frmResultadoEstadistico.xaml", System.UriKind.Relative));
     this.txtCerrarSession     = ((System.Windows.Controls.TextBlock)(this.FindName("txtCerrarSession")));
     this.txtfullname          = ((System.Windows.Documents.Run)(this.FindName("txtfullname")));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Instruccion          = ((System.Windows.Controls.StackPanel)(this.FindName("Instruccion")));
     this.brHeader             = ((System.Windows.Controls.Border)(this.FindName("brHeader")));
     this.brInstruc1           = ((System.Windows.Controls.Border)(this.FindName("brInstruc1")));
     this.txtInstruccion1      = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccion1")));
     this.line1                = ((System.Windows.Shapes.Line)(this.FindName("line1")));
     this.brInstruc2           = ((System.Windows.Controls.Border)(this.FindName("brInstruc2")));
     this.txtInstruccion2      = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccion2")));
     this.Line2                = ((System.Windows.Shapes.Line)(this.FindName("Line2")));
     this.brInstrcResult       = ((System.Windows.Controls.Border)(this.FindName("brInstrcResult")));
     this.txtInstruccionResult = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccionResult")));
     this.Line3                = ((System.Windows.Shapes.Line)(this.FindName("Line3")));
     this.brInstruccion3       = ((System.Windows.Controls.Border)(this.FindName("brInstruccion3")));
     this.txtInstruccion3      = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccion3")));
     this.textInfo             = ((System.Windows.Documents.Run)(this.FindName("textInfo")));
     this.textInfo2            = ((System.Windows.Documents.Run)(this.FindName("textInfo2")));
     this.textInfo3            = ((System.Windows.Documents.Run)(this.FindName("textInfo3")));
     this.txtTitle1            = ((System.Windows.Documents.Run)(this.FindName("txtTitle1")));
     this.txtTitle2            = ((System.Windows.Documents.Run)(this.FindName("txtTitle2")));
     this.canv            = ((System.Windows.Controls.Canvas)(this.FindName("canv")));
     this.MyChart         = ((Visifire.Charts.Chart)(this.FindName("MyChart")));
     this.txtTitulo       = ((System.Windows.Documents.Run)(this.FindName("txtTitulo")));
     this.txtOrientacion  = ((System.Windows.Documents.Run)(this.FindName("txtOrientacion")));
     this.toolTip         = ((System.Windows.Controls.ToolTip)(this.FindName("toolTip")));
     this.imgTalento      = ((System.Windows.Media.ImageBrush)(this.FindName("imgTalento")));
     this.talentosListBox = ((System.Windows.Controls.ListBox)(this.FindName("talentosListBox")));
     this.Zoom            = ((System.Windows.Controls.Canvas)(this.FindName("Zoom")));
     this.btnCerrarZoom   = ((System.Windows.Controls.Button)(this.FindName("btnCerrarZoom")));
     this.TalentoZoom     = ((Talentos_Master.ucTalentoLupita)(this.FindName("TalentoZoom")));
 }
Esempio n. 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.株洲市公安局_left1_今日警情状态窗口 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.图层_2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 4:
                this.t1 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._chart = ((Visifire.Charts.Chart)(target));
                return;

            case 2:
                this.ManipulateCommand = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.RuningLog = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.ManualReady = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\..\windows\WorkWindow.xaml"
                this.ManualReady.Click += new System.Windows.RoutedEventHandler(this.ManualReady_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Exit = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\..\windows\WorkWindow.xaml"
                this.Exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lb_title = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.cb_Projects = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.MyChart_TotalSpendSummary = ((Visifire.Charts.Chart)(target));
                return;

            case 4:
                this.btn_TotalPRAppyByDepart = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\..\..\..\Departments\Report\PR_Report.xaml"
                this.btn_TotalPRAppyByDepart.Click += new System.Windows.RoutedEventHandler(this.btn_TotalPRAppyByDepart_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btn_TotalMonthlyPRApply = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\..\..\..\Departments\Report\PR_Report.xaml"
                this.btn_TotalMonthlyPRApply.Click += new System.Windows.RoutedEventHandler(this.btn_TotalMonthlyPRApply_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\IntensityGraphContent.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.CloseButtonClick);

            #line default
            #line hidden
                return;

            case 2:
                this.IntensityChart = ((Visifire.Charts.Chart)(target));

            #line 26 "..\..\IntensityGraphContent.xaml"
                this.IntensityChart.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.IntensityChartMouseRightButtonDown);

            #line default
            #line hidden

            #line 26 "..\..\IntensityGraphContent.xaml"
                this.IntensityChart.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.IntensityChartMouseLeftButtonUp);

            #line default
            #line hidden

            #line 26 "..\..\IntensityGraphContent.xaml"
                this.IntensityChart.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.IntensityChartMouseRightButtonUp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\..\Report\N2_Report.xaml"
                ((EMS.Report.N2_Report)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded);

            #line default
            #line hidden
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.gd_output = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.dp_date = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 5:
                this.btn_search = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\..\..\Report\N2_Report.xaml"
                this.btn_search.Click += new System.Windows.RoutedEventHandler(this.btn_search_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.MyChart = ((Visifire.Charts.Chart)(target));
                return;

            case 7:
                this.PV = ((Visifire.Charts.DataSeries)(target));
                return;

            case 8:
                this.SV = ((Visifire.Charts.DataSeries)(target));
                return;

            case 9:
                this.txt_currentHumidity = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txt_refreshTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.txt_highLimit = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.txt_LowLimit = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.Inventory_Pie = ((System.Windows.Controls.WrapPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.株洲市公安局_left1_今日警情状态窗口 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.图层_2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.grid_PoliceNum = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.txtPoliceNum = ((System.Windows.Controls.TextBlock)(target));

            #line 92 "..\..\HRVChartInfo.xaml"
                this.txtPoliceNum.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txtPoliceNum_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 5:
                this.PoliceNum = ((System.Windows.Documents.Run)(target));
                return;

            case 6:
                this.txtCarNum = ((System.Windows.Controls.TextBlock)(target));

            #line 93 "..\..\HRVChartInfo.xaml"
                this.txtCarNum.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txtCarNum_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.CarNum = ((System.Windows.Documents.Run)(target));
                return;

            case 8:
                this.txtOnlinePoliceNum = ((System.Windows.Controls.TextBlock)(target));

            #line 94 "..\..\HRVChartInfo.xaml"
                this.txtOnlinePoliceNum.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txtOnlinePoliceNum_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 9:
                this.OnlinePoliceNum = ((System.Windows.Documents.Run)(target));
                return;

            case 10:
                this.txtOnlineCarNum = ((System.Windows.Controls.TextBlock)(target));

            #line 95 "..\..\HRVChartInfo.xaml"
                this.txtOnlineCarNum.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txtOnlineCarNum_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 11:
                this.OnlineCarNum = ((System.Windows.Documents.Run)(target));
                return;

            case 12:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 13:
                this.headerText = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 46
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.vuebox1 = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 2:
                this.cvs1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.cvs2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.CityMap = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.FillContainer = ((System.Windows.Controls.Canvas)(target));
                return;

            case 6:
                this.fill1 = ((System.Windows.Shapes.Path)(target));

            #line 23 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill1.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 23 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill1.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 7:
                this.fill2 = ((System.Windows.Shapes.Path)(target));

            #line 37 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill2.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 37 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill2.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 8:
                this.fill3 = ((System.Windows.Shapes.Path)(target));

            #line 51 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill3.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 51 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill3.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 9:
                this.fill4 = ((System.Windows.Shapes.Path)(target));

            #line 65 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill4.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 65 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill4.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 10:
                this.fill5 = ((System.Windows.Shapes.Path)(target));

            #line 79 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill5.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 79 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill5.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 11:
                this.fill6 = ((System.Windows.Shapes.Path)(target));

            #line 93 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill6.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 93 "..\..\HRVZZCityMapControl_ZZGA.xaml"
                this.fill6.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 12:
                this.TextBlock = ((System.Windows.Controls.Canvas)(target));
                return;

            case 13:
                this.TextBlock1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 14:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 16:
                this.LegendGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.legend1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 18:
                this.legend2 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 19:
                this.GroupRoot = ((System.Windows.Controls.Canvas)(target));
                return;

            case 20:
                this.Group1_Copy0 = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.PoliceCase0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.Persons0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.PolicePower0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.Group1_Copy1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.PoliceCase1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.Persons1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.PolicePower1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.Group1_Copy2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 29:
                this.PoliceCase2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.Persons2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.PolicePower2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.Group1_Copy3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.PoliceCase3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.Persons3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.PolicePower3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.Group1_Copy4 = ((System.Windows.Controls.Grid)(target));
                return;

            case 37:
                this.PoliceCase4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.Persons4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.PolicePower4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.Group1_Copy5 = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.PoliceCase5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.Persons5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.PolicePower5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.Group1_Copy = ((System.Windows.Controls.Grid)(target));
                return;

            case 45:
                this.PoliceCase = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 46:
                this.Persons = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.PolicePower = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((Smart_Energy_Management_System.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((Smart_Energy_Management_System.MainWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDoubleClick);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((Smart_Energy_Management_System.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.AppIco = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.AppInfo = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Window_Close);

            #line default
            #line hidden
                return;

            case 5:
                this.btnMinWin = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.btnMinWin.Click += new System.Windows.RoutedEventHandler(this.Window_Min);

            #line default
            #line hidden
                return;

            case 6:
                this.btnQuit = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.DeviceList = ((System.Windows.Controls.ListBox)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.DeviceList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DeviceList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.SelectDatePicker = ((System.Windows.Controls.DatePicker)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.SelectDatePicker.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.DateSelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.CurveComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 65 "..\..\MainWindow.xaml"
                this.CurveComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CurveComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.P = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 11:
                this.V = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 12:
                this.I = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 13:
                this.Q1 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 14:
                this.S = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 15:
                this.S1 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 16:
                this.PF = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 17:
                this.PF1 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 18:
                this.SN = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 19:
                this.N = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 20:
                this.THDI = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 21:
                this.ChartControl = ((Visifire.Charts.Chart)(target));
                return;

            case 22:
                this.ECounterTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.TotalcostTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.ViewComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 123 "..\..\MainWindow.xaml"
                this.ViewComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DateSelectionChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.Night = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 26:
                this.Morning = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 27:
                this.Afternoon = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 28:
                this.Evening = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 29:
                this.Day = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 30:
                this.Week = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 31:
                this.Month = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 32:
                this.Year = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 33:
                this.DeviceScheList = ((System.Windows.Controls.ListBox)(target));

            #line 148 "..\..\MainWindow.xaml"
                this.DeviceScheList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DeviceScheList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 34:
                this.btnUpdateSche = ((System.Windows.Controls.Button)(target));

            #line 150 "..\..\MainWindow.xaml"
                this.btnUpdateSche.Click += new System.Windows.RoutedEventHandler(this.btnUpdateSche_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.NightBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.MorningBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.AfternoonBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:
                this.EveningBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.NightUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.MorningUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.AfternoonUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 42:
                this.EveningUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.BudgetChartControl = ((Visifire.Charts.Chart)(target));
                return;

            case 44:
                this.NightSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 45:
                this.MorningSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 46:
                this.AfternoonSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 47:
                this.EveningSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 48:
                this.AddedDeviceList = ((System.Windows.Controls.ListBox)(target));

            #line 211 "..\..\MainWindow.xaml"
                this.AddedDeviceList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.AddedDeviceList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 49:
                this.Add_NameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.Add_NameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.Add_IDLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.Add_IDTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:
                this.Add_MACLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.Add_MACTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 55:
                this.Add_UserCodeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.Add_UserCodeTextBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 57:
                this.Add_UserCodeTextBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 58:
                this.Add_VoltageLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.Add_VoltageTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 60:
                this.Add_PowerTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.Add_BudgettedEnergyTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 62:
                this.btnAddDev = ((System.Windows.Controls.Button)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.btnAddDev.Click += new System.Windows.RoutedEventHandler(this.btnAddDev_Click);

            #line default
            #line hidden
                return;

            case 63:
                this.btnRemoveDev = ((System.Windows.Controls.Button)(target));

            #line 232 "..\..\MainWindow.xaml"
                this.btnRemoveDev.Click += new System.Windows.RoutedEventHandler(this.btnRemoveDev_Click);

            #line default
            #line hidden
                return;

            case 64:
                this.Add_DescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 65:
                this.btnUpdateDev = ((System.Windows.Controls.Button)(target));

            #line 235 "..\..\MainWindow.xaml"
                this.btnUpdateDev.Click += new System.Windows.RoutedEventHandler(this.btnUpdateDev_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._chart = ((Visifire.Charts.Chart)(target));
                return;

            case 2:
                this.RunState = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.RunTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.RunType = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.RunSpeed = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.ManipulateCommand = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 7:
                this.AddCmd = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\..\windows\WorkWindow.xaml"
                this.AddCmd.Click += new System.Windows.RoutedEventHandler(this.AddCmd_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.EditCmd = ((System.Windows.Controls.Button)(target));

            #line 130 "..\..\..\windows\WorkWindow.xaml"
                this.EditCmd.Click += new System.Windows.RoutedEventHandler(this.EditCmd_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.DeleteCmd = ((System.Windows.Controls.Button)(target));

            #line 131 "..\..\..\windows\WorkWindow.xaml"
                this.DeleteCmd.Click += new System.Windows.RoutedEventHandler(this.DeleteCmd_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.ClearCmd = ((System.Windows.Controls.Button)(target));

            #line 132 "..\..\..\windows\WorkWindow.xaml"
                this.ClearCmd.Click += new System.Windows.RoutedEventHandler(this.ClearCmd_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.LoadCmd = ((System.Windows.Controls.Button)(target));

            #line 133 "..\..\..\windows\WorkWindow.xaml"
                this.LoadCmd.Click += new System.Windows.RoutedEventHandler(this.LoadCmd_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.PackageCmd = ((System.Windows.Controls.Button)(target));

            #line 134 "..\..\..\windows\WorkWindow.xaml"
                this.PackageCmd.Click += new System.Windows.RoutedEventHandler(this.PackageCmd_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.SaveCmd = ((System.Windows.Controls.Button)(target));

            #line 135 "..\..\..\windows\WorkWindow.xaml"
                this.SaveCmd.Click += new System.Windows.RoutedEventHandler(this.SaveCmd_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.commandListBox = ((System.Windows.Controls.ListBox)(target));

            #line 140 "..\..\..\windows\WorkWindow.xaml"
                this.commandListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.commandListBox_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 15:
                this.ManualReady = ((System.Windows.Controls.Button)(target));

            #line 146 "..\..\..\windows\WorkWindow.xaml"
                this.ManualReady.Click += new System.Windows.RoutedEventHandler(this.ManualReady_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.AutoReady = ((System.Windows.Controls.Button)(target));

            #line 147 "..\..\..\windows\WorkWindow.xaml"
                this.AutoReady.Click += new System.Windows.RoutedEventHandler(this.AutoReady_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.StartWork = ((System.Windows.Controls.Button)(target));

            #line 148 "..\..\..\windows\WorkWindow.xaml"
                this.StartWork.Click += new System.Windows.RoutedEventHandler(this.StartWork_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.StopWork = ((System.Windows.Controls.Button)(target));

            #line 149 "..\..\..\windows\WorkWindow.xaml"
                this.StopWork.Click += new System.Windows.RoutedEventHandler(this.StopWork_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.Exit = ((System.Windows.Controls.Button)(target));

            #line 150 "..\..\..\windows\WorkWindow.xaml"
                this.Exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tvwExplorer = ((System.Windows.Controls.TreeView)(target));
                return;

            case 2:
                this.tbHeader = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.zoomSlider = ((System.Windows.Controls.Slider)(target));
                return;

            case 4:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 5:
                this.btnStop = ((System.Windows.Controls.Button)(target));

            #line 97 "..\..\..\MainWindow.xaml"
                this.btnStop.Click += new System.Windows.RoutedEventHandler(this.btnStop_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.tbType = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.cboChartType = ((System.Windows.Controls.ComboBox)(target));

            #line 103 "..\..\..\MainWindow.xaml"
                this.cboChartType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboChartType_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.tbLastNDays = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.txtLastNDays = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.tbFolder = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.txtPath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.btnShowDayStats = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\..\MainWindow.xaml"
                this.btnShowDayStats.Click += new System.Windows.RoutedEventHandler(this.btnShowDayStats_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.sbMessage = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 14:
                this.tbSize = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CityMap = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.path0 = ((System.Windows.Shapes.Path)(target));
                return;

            case 3:
                this.path1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 4:
                this.path2 = ((System.Windows.Shapes.Path)(target));
                return;

            case 5:
                this.path3 = ((System.Windows.Shapes.Path)(target));
                return;

            case 6:
                this.FillContainer = ((System.Windows.Controls.Canvas)(target));
                return;

            case 7:
                this.fill2 = ((System.Windows.Shapes.Path)(target));

            #line 19 "..\..\HRVUserControl.xaml"
                this.fill2.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 19 "..\..\HRVUserControl.xaml"
                this.fill2.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 8:
                this.fill3 = ((System.Windows.Shapes.Path)(target));

            #line 34 "..\..\HRVUserControl.xaml"
                this.fill3.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 34 "..\..\HRVUserControl.xaml"
                this.fill3.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 9:
                this.fill0 = ((System.Windows.Shapes.Path)(target));

            #line 49 "..\..\HRVUserControl.xaml"
                this.fill0.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 49 "..\..\HRVUserControl.xaml"
                this.fill0.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 10:
                this.fill1 = ((System.Windows.Shapes.Path)(target));

            #line 64 "..\..\HRVUserControl.xaml"
                this.fill1.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 64 "..\..\HRVUserControl.xaml"
                this.fill1.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 11:
                this.TextBlock = ((System.Windows.Controls.Canvas)(target));
                return;

            case 12:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 14:
                this.LegendGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.legend1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 16:
                this.legend2 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 17:
                this.GroupRoot = ((System.Windows.Controls.Canvas)(target));
                return;

            case 18:
                this.Group0 = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.PoliceCase0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.Persons0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.PolicePower0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.Group1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.PoliceCase1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.Persons1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.PolicePower1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.Group2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:
                this.PoliceCase2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.Persons2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.PolicePower2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.Group3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.PoliceCase3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.Persons3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.PolicePower3 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 5:
                this.箱开关 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.箱开关.Click += new System.Windows.RoutedEventHandler(this.实验箱开关);

            #line default
            #line hidden
                return;

            case 6:
                this.灯1 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 60 "..\..\MainWindow.xaml"
                this.灯1.Click += new System.Windows.RoutedEventHandler(this.灯1开关);

            #line default
            #line hidden
                return;

            case 7:
                this.灯2 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.灯2.Click += new System.Windows.RoutedEventHandler(this.灯2开关);

            #line default
            #line hidden
                return;

            case 8:
                this.灯3 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.灯3.Click += new System.Windows.RoutedEventHandler(this.灯3开关);

            #line default
            #line hidden
                return;

            case 9:
                this.progress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 10:
                this.start = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.start.Click += new System.Windows.RoutedEventHandler(this.窗帘_开);

            #line default
            #line hidden
                return;

            case 11:
                this.pause = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.pause.Click += new System.Windows.RoutedEventHandler(this.窗帘_停);

            #line default
            #line hidden
                return;

            case 12:
                this.close = ((System.Windows.Controls.Button)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.close.Click += new System.Windows.RoutedEventHandler(this.窗帘_关);

            #line default
            #line hidden
                return;

            case 13:
                this.智能插座 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.智能插座.Click += new System.Windows.RoutedEventHandler(this.智能插座开关);

            #line default
            #line hidden
                return;

            case 14:
                this.chart1 = ((Visifire.Charts.Chart)(target));
                return;

            case 15:
                this.开启多次取样 = ((System.Windows.Controls.Button)(target));

            #line 138 "..\..\MainWindow.xaml"
                this.开启多次取样.Click += new System.Windows.RoutedEventHandler(this.开启多次温度取样);

            #line default
            #line hidden
                return;

            case 16:
                this.关闭多次取样 = ((System.Windows.Controls.Button)(target));

            #line 139 "..\..\MainWindow.xaml"
                this.关闭多次取样.Click += new System.Windows.RoutedEventHandler(this.关闭多次温度取样);

            #line default
            #line hidden
                return;

            case 17:
                this.单次取样 = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.单次取样.Click += new System.Windows.RoutedEventHandler(this.温度单次取样);

            #line default
            #line hidden
                return;

            case 18:
                this.温度报警 = ((System.Windows.Controls.ListView)(target));
                return;

            case 19:

            #line 159 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.温度查询范围);

            #line default
            #line hidden
                return;

            case 20:

            #line 160 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.温度应用范围);

            #line default
            #line hidden
                return;

            case 21:
                this.myGauge1 = ((CircularGauge.CircularGaugeControl)(target));
                return;

            case 22:
                this.chart2 = ((Visifire.Charts.Chart)(target));
                return;

            case 23:
                this.开启多次取样2 = ((System.Windows.Controls.Button)(target));

            #line 251 "..\..\MainWindow.xaml"
                this.开启多次取样2.Click += new System.Windows.RoutedEventHandler(this.开启多次温湿度取样);

            #line default
            #line hidden
                return;

            case 24:
                this.关闭多次取样2 = ((System.Windows.Controls.Button)(target));

            #line 252 "..\..\MainWindow.xaml"
                this.关闭多次取样2.Click += new System.Windows.RoutedEventHandler(this.关闭多次温湿度取样);

            #line default
            #line hidden
                return;

            case 25:
                this.单次取样2 = ((System.Windows.Controls.Button)(target));

            #line 253 "..\..\MainWindow.xaml"
                this.单次取样2.Click += new System.Windows.RoutedEventHandler(this.单次温湿度取样);

            #line default
            #line hidden
                return;

            case 26:
                this.温湿度报警 = ((System.Windows.Controls.ListView)(target));
                return;

            case 27:

            #line 273 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.温湿度设置范围);

            #line default
            #line hidden
                return;

            case 28:

            #line 277 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.温湿度查询范围);

            #line default
            #line hidden
                return;

            case 29:
                this.chart3 = ((Visifire.Charts.Chart)(target));
                return;

            case 30:
                this.开启多次取样3 = ((System.Windows.Controls.Button)(target));

            #line 328 "..\..\MainWindow.xaml"
                this.开启多次取样3.Click += new System.Windows.RoutedEventHandler(this.开启多次光照度取样);

            #line default
            #line hidden
                return;

            case 31:
                this.关闭多次取样3 = ((System.Windows.Controls.Button)(target));

            #line 329 "..\..\MainWindow.xaml"
                this.关闭多次取样3.Click += new System.Windows.RoutedEventHandler(this.关闭多次光照度取样);

            #line default
            #line hidden
                return;

            case 32:
                this.单次取样3 = ((System.Windows.Controls.Button)(target));

            #line 330 "..\..\MainWindow.xaml"
                this.单次取样3.Click += new System.Windows.RoutedEventHandler(this.单次光照度取样);

            #line default
            #line hidden
                return;

            case 33:
                this.光照度报警 = ((System.Windows.Controls.ListView)(target));
                return;

            case 34:

            #line 350 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.光照度应用范围);

            #line default
            #line hidden
                return;

            case 35:
                this.myGauge2 = ((CircularGauge.CircularGaugeControl)(target));
                return;

            case 36:

            #line 394 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.光照度查询范围);

            #line default
            #line hidden
                return;

            case 37:
                this.video = ((System.Windows.Controls.Grid)(target));
                return;

            case 38:

            #line 402 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.video_open);

            #line default
            #line hidden
                return;

            case 39:

            #line 403 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.video_close);

            #line default
            #line hidden
                return;

            case 40:
                this.time = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:

            #line 411 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.报警);

            #line default
            #line hidden
                return;

            case 42:

            #line 412 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.关闭报警);

            #line default
            #line hidden
                return;

            case 43:

            #line 429 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.setting_click);

            #line default
            #line hidden
                return;

            case 44:

            #line 433 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.about_click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 52
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Talentos_Master;component/frmCalificacion.xaml", System.UriKind.Relative));
     this.txtCerrarSession     = ((System.Windows.Controls.TextBlock)(this.FindName("txtCerrarSession")));
     this.txtfullname          = ((System.Windows.Documents.Run)(this.FindName("txtfullname")));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.canvasPuntajesNivel2 = ((System.Windows.Controls.Canvas)(this.FindName("canvasPuntajesNivel2")));
     this.btnSalir             = ((System.Windows.Controls.Border)(this.FindName("btnSalir")));
     this.txtIndicaciones      = ((System.Windows.Controls.TextBlock)(this.FindName("txtIndicaciones")));
     this.ppPuntajesBuzon1     = ((System.Windows.Controls.Canvas)(this.FindName("ppPuntajesBuzon1")));
     this.canvasPuntajesBuzon1 = ((System.Windows.Controls.Canvas)(this.FindName("canvasPuntajesBuzon1")));
     this.derechaB1            = ((System.Windows.Controls.Image)(this.FindName("derechaB1")));
     this.popup1             = ((System.Windows.Controls.Border)(this.FindName("popup1")));
     this.txtCantidad1       = ((System.Windows.Controls.TextBlock)(this.FindName("txtCantidad1")));
     this.izquierdaB1        = ((System.Windows.Controls.Image)(this.FindName("izquierdaB1")));
     this.canvasBuzonesSelva = ((System.Windows.Controls.Canvas)(this.FindName("canvasBuzonesSelva")));
     this.imgBuzon1          = ((System.Windows.Controls.Border)(this.FindName("imgBuzon1")));
     this.txt11                 = ((System.Windows.Controls.TextBlock)(this.FindName("txt11")));
     this.txt21                 = ((System.Windows.Controls.TextBlock)(this.FindName("txt21")));
     this.txt31                 = ((System.Windows.Controls.TextBlock)(this.FindName("txt31")));
     this.imgBuzon2             = ((System.Windows.Controls.Border)(this.FindName("imgBuzon2")));
     this.txt12                 = ((System.Windows.Controls.TextBlock)(this.FindName("txt12")));
     this.txt22                 = ((System.Windows.Controls.TextBlock)(this.FindName("txt22")));
     this.txt32                 = ((System.Windows.Controls.TextBlock)(this.FindName("txt32")));
     this.ppPuntajesBuzon2      = ((System.Windows.Controls.Canvas)(this.FindName("ppPuntajesBuzon2")));
     this.canvasPuntajesBuzon2  = ((System.Windows.Controls.Canvas)(this.FindName("canvasPuntajesBuzon2")));
     this.izquierdaB2           = ((System.Windows.Controls.Image)(this.FindName("izquierdaB2")));
     this.txtCantidad2          = ((System.Windows.Controls.TextBlock)(this.FindName("txtCantidad2")));
     this.derechaB2             = ((System.Windows.Controls.Image)(this.FindName("derechaB2")));
     this.ppPuntaje1            = ((System.Windows.Controls.Canvas)(this.FindName("ppPuntaje1")));
     this.grdPuntaje1           = ((System.Windows.Controls.Grid)(this.FindName("grdPuntaje1")));
     this.btnPuntaje5           = ((System.Windows.Controls.Button)(this.FindName("btnPuntaje5")));
     this.btnPuntaje6           = ((System.Windows.Controls.Button)(this.FindName("btnPuntaje6")));
     this.ppPuntaje2            = ((System.Windows.Controls.Canvas)(this.FindName("ppPuntaje2")));
     this.grdPuntaje2           = ((System.Windows.Controls.Grid)(this.FindName("grdPuntaje2")));
     this.btnPuntaje2           = ((System.Windows.Controls.Button)(this.FindName("btnPuntaje2")));
     this.btnPuntaje3           = ((System.Windows.Controls.Button)(this.FindName("btnPuntaje3")));
     this.btnPuntaje4           = ((System.Windows.Controls.Button)(this.FindName("btnPuntaje4")));
     this.ppTerminoCalificacion = ((System.Windows.Controls.Canvas)(this.FindName("ppTerminoCalificacion")));
     this.btnSalirCompletamente = ((System.Windows.Controls.Border)(this.FindName("btnSalirCompletamente")));
     this.btnResultados         = ((System.Windows.Controls.Border)(this.FindName("btnResultados")));
     this.ppConfirmaSalir       = ((System.Windows.Controls.Canvas)(this.FindName("ppConfirmaSalir")));
     this.btnNo                 = ((System.Windows.Controls.Border)(this.FindName("btnNo")));
     this.btnSi                 = ((System.Windows.Controls.Border)(this.FindName("btnSi")));
     this.ppSeAcabo             = ((System.Windows.Controls.Border)(this.FindName("ppSeAcabo")));
     this.grdSeAcabo            = ((System.Windows.Controls.Grid)(this.FindName("grdSeAcabo")));
     this.txtMensaje            = ((System.Windows.Documents.Run)(this.FindName("txtMensaje")));
     this.btnAceptarSeAcabo     = ((System.Windows.Controls.Border)(this.FindName("btnAceptarSeAcabo")));
     this.btnCancelarSeAcabo    = ((System.Windows.Controls.Border)(this.FindName("btnCancelarSeAcabo")));
     this.frmRadar              = ((System.Windows.Controls.Canvas)(this.FindName("frmRadar")));
     this.textInfo              = ((System.Windows.Documents.Run)(this.FindName("textInfo")));
     this.txtTitle1             = ((System.Windows.Documents.Run)(this.FindName("txtTitle1")));
     this.txtTitle2             = ((System.Windows.Documents.Run)(this.FindName("txtTitle2")));
     this.canv       = ((System.Windows.Controls.Canvas)(this.FindName("canv")));
     this.MyChart    = ((Visifire.Charts.Chart)(this.FindName("MyChart")));
     this.txtNext    = ((System.Windows.Controls.TextBlock)(this.FindName("txtNext")));
     this.txtNextSms = ((System.Windows.Controls.TextBlock)(this.FindName("txtNextSms")));
     this.txtVolvera = ((System.Windows.Controls.TextBlock)(this.FindName("txtVolvera")));
     this.txtVolverRecomendaciones = ((System.Windows.Controls.TextBlock)(this.FindName("txtVolverRecomendaciones")));
 }
Esempio n. 53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Tab = ((System.Windows.Controls.TabControl)(target));
                return;

            case 2:
                this.txtQueryKey = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.cbCondition = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:

            #line 35 "..\..\ConditionQuery.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btClear);

            #line default
            #line hidden
                return;

            case 5:
                this.rbOneMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.rbTwoMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.rbThreeMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.Rand10 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 9:
                this.Rand20 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.Rand50 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 11:
                this.Rand100 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.RandCustom = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.iudCustomBDPages = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));

            #line 61 "..\..\ConditionQuery.xaml"
                this.iudCustomBDPages.GotFocus += new System.Windows.RoutedEventHandler(this.iudCustomBDPages_GotFocus);

            #line default
            #line hidden
                return;

            case 14:
                this.chkSimulation = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 15:

            #line 72 "..\..\ConditionQuery.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btDelDomain);

            #line default
            #line hidden
                return;

            case 16:
                this.chkBaidu = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 17:
                this.chk360 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 18:
                this.chkSogou = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 19:

            #line 85 "..\..\ConditionQuery.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Query);

            #line default
            #line hidden
                return;

            case 20:
                this.tbTotal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.btReturn = ((System.Windows.Controls.Button)(target));

            #line 101 "..\..\ConditionQuery.xaml"
                this.btReturn.Click += new System.Windows.RoutedEventHandler(this.ReturnQuery);

            #line default
            #line hidden
                return;

            case 22:
                this.btAll = ((System.Windows.Controls.Button)(target));

            #line 109 "..\..\ConditionQuery.xaml"
                this.btAll.Click += new System.Windows.RoutedEventHandler(this.AllResult);

            #line default
            #line hidden
                return;

            case 23:
                this.btExport = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\ConditionQuery.xaml"
                this.btExport.Click += new System.Windows.RoutedEventHandler(this.ResultExport);

            #line default
            #line hidden
                return;

            case 24:
                this.NowKey = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.tvKey = ((System.Windows.Controls.ListBox)(target));

            #line 138 "..\..\ConditionQuery.xaml"
                this.tvKey.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tvKey_SelectionChanged);

            #line default
            #line hidden
                return;

            case 26:
                this.dgQueryResult = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 27:
                this.wbSimulation = ((System.Windows.Controls.WebBrowser)(target));

            #line 164 "..\..\ConditionQuery.xaml"
                this.wbSimulation.Navigated += new System.Windows.Navigation.NavigatedEventHandler(this.wbSimulation_Navigated);

            #line default
            #line hidden

            #line 164 "..\..\ConditionQuery.xaml"
                this.wbSimulation.LoadCompleted += new System.Windows.Navigation.LoadCompletedEventHandler(this.wbSimulation_LoadCompleted);

            #line default
            #line hidden
                return;

            case 28:
                this.MyChart = ((Visifire.Charts.Chart)(target));
                return;

            case 29:
                this.ChartTitle = ((Visifire.Charts.Title)(target));
                return;

            case 30:
                this.dataSeries = ((Visifire.Charts.DataSeries)(target));
                return;

            case 31:
                this.Paiming = ((Visifire.Charts.DataPoint)(target));
                return;

            case 32:
                this.noPaiming = ((Visifire.Charts.DataPoint)(target));
                return;

            case 33:
                this.pbQuery = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Tab = ((System.Windows.Controls.TabControl)(target));
                return;

            case 2:
                this.txtQueryKey = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.cbCondition = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:

            #line 34 "..\..\LinksExtracted.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btClear);

            #line default
            #line hidden
                return;

            case 5:
                this.rbOneMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.rbTwoMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.Rand10 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.Rand20 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 9:
                this.Rand50 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.Rand100 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 11:

            #line 57 "..\..\LinksExtracted.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Query);

            #line default
            #line hidden
                return;

            case 12:
                this.tbTotal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.tbInclude = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.tbIncludeRate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:

            #line 76 "..\..\LinksExtracted.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ReturnQuery);

            #line default
            #line hidden
                return;

            case 16:
                this.tvKey = ((System.Windows.Controls.ListBox)(target));

            #line 97 "..\..\LinksExtracted.xaml"
                this.tvKey.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tvKey_SelectionChanged);

            #line default
            #line hidden
                return;

            case 17:
                this.dgQueryResult = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 18:
                this.MyChart = ((Visifire.Charts.Chart)(target));
                return;

            case 19:
                this.ChartTitle = ((Visifire.Charts.Title)(target));
                return;

            case 20:
                this.dataSeries = ((Visifire.Charts.DataSeries)(target));
                return;

            case 21:
                this.Paiming = ((Visifire.Charts.DataPoint)(target));
                return;

            case 22:
                this.noPaiming = ((Visifire.Charts.DataPoint)(target));
                return;

            case 23:
                this.pbQuery = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 55
0
        public Chart CreateChart(Stock stock)
        {
            Visifire.Charts.Chart visiChart = new Visifire.Charts.Chart();
            Visifire.Charts.Title title     = new Visifire.Charts.Title();

            title.Text = stock.Name;
            visiChart.Titles.Add(title);

            visiChart.Width  = 300;
            visiChart.Height = 200;

            Visifire.Charts.DataSeries dataSeriesClose = new Visifire.Charts.DataSeries();
            Visifire.Charts.DataSeries dataSeriesOpen  = new Visifire.Charts.DataSeries();
            Visifire.Charts.DataSeries dataSeriesLow   = new Visifire.Charts.DataSeries();
            Visifire.Charts.DataSeries dataSeriesHigh  = new Visifire.Charts.DataSeries();


            Visifire.Charts.DataPoint dataPointClose;
            Visifire.Charts.DataPoint dataPointOpen;
            Visifire.Charts.DataPoint dataPointLow;
            Visifire.Charts.DataPoint dataPointHigh;

            foreach (var stockVal in stock.values)
            {
                if (stockVal.Open.HasValue)
                {
                    dataPointOpen        = new DataPoint();
                    dataPointOpen.YValue = stockVal.Open.Value;
                    dataSeriesOpen.DataPoints.Add(dataPointOpen);
                }
                if (stockVal.High.HasValue)
                {
                    dataPointHigh        = new DataPoint();
                    dataPointHigh.YValue = stockVal.High.Value;
                    dataSeriesHigh.DataPoints.Add(dataPointHigh);
                }
                if (stockVal.Close.HasValue)
                {
                    dataPointClose        = new DataPoint();
                    dataPointClose.YValue = stockVal.Close.Value;
                    dataSeriesClose.DataPoints.Add(dataPointClose);
                }
                if (stockVal.Low.HasValue)
                {
                    dataPointLow        = new DataPoint();
                    dataPointLow.YValue = stockVal.Low.Value;
                    dataSeriesLow.DataPoints.Add(dataPointLow);
                }
            }

            if (dataSeriesLow.DataPoints.Count > 0)
            {
                dataSeriesLow.RenderAs = RenderAs.Line;
                dataSeriesLow.Name     = "Low";
                visiChart.Series.Add(dataSeriesLow);
            }
            if (dataSeriesHigh.DataPoints.Count > 0)
            {
                dataSeriesHigh.RenderAs = RenderAs.Line;
                dataSeriesHigh.Name     = "High";
                visiChart.Series.Add(dataSeriesHigh);
            }
            if (dataSeriesOpen.DataPoints.Count > 0)
            {
                dataSeriesOpen.RenderAs = RenderAs.Line;
                dataSeriesOpen.Name     = "Open";
                visiChart.Series.Add(dataSeriesOpen);
            }
            if (dataSeriesClose.DataPoints.Count > 0)
            {
                dataSeriesClose.RenderAs = RenderAs.Line;
                dataSeriesClose.Name     = "Close";
                visiChart.Series.Add(dataSeriesClose);
            }
            return(visiChart);
        }
Esempio n. 56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\Window\HistoryStatic.xaml"
                ((Monitor.HistoryStatic)(target)).Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded);

            #line default
            #line hidden

            #line 11 "..\..\..\Window\HistoryStatic.xaml"
                ((Monitor.HistoryStatic)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.OnGotFocus);

            #line default
            #line hidden

            #line 11 "..\..\..\Window\HistoryStatic.xaml"
                ((Monitor.HistoryStatic)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.OnSizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.preSelectIndex = ((System.Windows.Controls.ComboBox)(target));

            #line 19 "..\..\..\Window\HistoryStatic.xaml"
                this.preSelectIndex.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.TControl = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.startTime = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 5:
                this.endTime = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 6:

            #line 26 "..\..\..\Window\HistoryStatic.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSerch);

            #line default
            #line hidden
                return;

            case 7:

            #line 27 "..\..\..\Window\HistoryStatic.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSave);

            #line default
            #line hidden
                return;

            case 8:
                this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
                return;

            case 9:
                this.yAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.VerticalAxis)(target));
                return;

            case 10:
                this.xAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.DateTimeAxis)(target));
                return;

            case 11:
                this.LowerWnd = ((System.Windows.Controls.Border)(target));
                return;

            case 12:
                this.PieLable = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lb_title = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.cb_Projects = ((System.Windows.Controls.ComboBox)(target));

            #line 14 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.cb_Projects.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_Projects_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.cb_Purchaser = ((System.Windows.Controls.ComboBox)(target));

            #line 18 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.cb_Purchaser.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_Purchaser_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.MyChart_TotalSpendSummary = ((Visifire.Charts.Chart)(target));
                return;

            case 5:
                this.btn_TotalSummaryProjectSpend = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.btn_TotalSummaryProjectSpend.Click += new System.Windows.RoutedEventHandler(this.btn_TotalSummaryProjectSpend_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_TotalPO = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.btn_TotalPO.Click += new System.Windows.RoutedEventHandler(this.btn_TotalPO_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btn_TotalMonthlyExpenses = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.btn_TotalMonthlyExpenses.Click += new System.Windows.RoutedEventHandler(this.btn_TotalMonthlyExpenses_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btn_TotalPartTypeSpendOnProject = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.btn_TotalPartTypeSpendOnProject.Click += new System.Windows.RoutedEventHandler(this.btn_TotalPartTypeSpendOnProject_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btn_TotalSumarryByDepartment = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\..\..\..\Departments\Report\PO_Report.xaml"
                this.btn_TotalSumarryByDepartment.Click += new System.Windows.RoutedEventHandler(this.btn_TotalSumarryByDepartment_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.buttonDig = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\KeyDig.xaml"
                this.buttonDig.Click += new System.Windows.RoutedEventHandler(this.btDig);

            #line default
            #line hidden
                return;

            case 2:
                this.buttonExport = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\KeyDig.xaml"
                this.buttonExport.Click += new System.Windows.RoutedEventHandler(this.btExport);

            #line default
            #line hidden
                return;

            case 3:
                this.sliderGrade = ((System.Windows.Controls.Slider)(target));
                return;

            case 4:
                this.IncludeKey = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 5:
                this.cbBaidu = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 6:
                this.cb360 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 7:
                this.cbSogou = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.pbQuery = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 9:
                this.txtQueryKey = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 10:
                this.lbDigKey = ((System.Windows.Controls.ListView)(target));

            #line 71 "..\..\KeyDig.xaml"
                this.lbDigKey.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.GridViewColumnHeader_Click));

            #line default
            #line hidden
                return;

            case 11:
                this.gvKey = ((System.Windows.Controls.GridView)(target));
                return;

            case 12:
                this.MyChart = ((Visifire.Charts.Chart)(target));
                return;

            case 13:
                this.ChartTitle = ((Visifire.Charts.Title)(target));
                return;

            case 14:
                this.dataSeries = ((Visifire.Charts.DataSeries)(target));
                return;

            case 15:
                this.Baidu = ((Visifire.Charts.DataPoint)(target));
                return;

            case 16:
                this.So = ((Visifire.Charts.DataPoint)(target));
                return;

            case 17:
                this.Sogou = ((Visifire.Charts.DataPoint)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Tab = ((System.Windows.Controls.TabControl)(target));
                return;

            case 2:
                this.txtQueryKey = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.cbCondition = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:

            #line 35 "..\..\CreativeCollection.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btClear);

            #line default
            #line hidden
                return;

            case 5:
                this.rbNameMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.rbDomainMode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.chkLeftRank = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.chkRightRank = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 9:
                this.iudRefreshNum = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 10:

            #line 66 "..\..\CreativeCollection.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btDelDomain);

            #line default
            #line hidden
                return;

            case 11:
                this.chkBaidu = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 12:
                this.chk360 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 13:
                this.chkSogou = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 14:

            #line 79 "..\..\CreativeCollection.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Query);

            #line default
            #line hidden
                return;

            case 15:
                this.tbTotal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.btReturn = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\CreativeCollection.xaml"
                this.btReturn.Click += new System.Windows.RoutedEventHandler(this.ReturnQuery);

            #line default
            #line hidden
                return;

            case 17:
                this.btAll = ((System.Windows.Controls.Button)(target));

            #line 103 "..\..\CreativeCollection.xaml"
                this.btAll.Click += new System.Windows.RoutedEventHandler(this.AllResult);

            #line default
            #line hidden
                return;

            case 18:
                this.btExport = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\CreativeCollection.xaml"
                this.btExport.Click += new System.Windows.RoutedEventHandler(this.ResultExport);

            #line default
            #line hidden
                return;

            case 19:
                this.NowKey = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.tvKey = ((System.Windows.Controls.ListBox)(target));

            #line 132 "..\..\CreativeCollection.xaml"
                this.tvKey.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tvKey_SelectionChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.dgQueryResult = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 22:
                this.MyChart = ((Visifire.Charts.Chart)(target));
                return;

            case 23:
                this.ChartTitle = ((Visifire.Charts.Title)(target));
                return;

            case 24:
                this.dataSeries = ((Visifire.Charts.DataSeries)(target));
                return;

            case 25:
                this.Paiming = ((Visifire.Charts.DataPoint)(target));
                return;

            case 26:
                this.noPaiming = ((Visifire.Charts.DataPoint)(target));
                return;

            case 27:
                this.pbQuery = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.CityMap = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.FillContainer = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:

            #line 31 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 31 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 5:

            #line 46 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 46 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 6:

            #line 60 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 60 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 7:

            #line 74 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 74 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 8:

            #line 88 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 88 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 9:

            #line 102 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 102 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 10:

            #line 116 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 116 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 11:

            #line 130 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 130 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 12:

            #line 144 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 144 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 13:

            #line 158 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 158 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 14:

            #line 172 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Path_MouseLeave);

            #line default
            #line hidden

            #line 172 "..\..\HRVZZMapControl_ZZGA.xaml"
                ((System.Windows.Shapes.Path)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Path_MouseEnter);

            #line default
            #line hidden
                return;

            case 15:
                this.TextBlock = ((System.Windows.Controls.Canvas)(target));
                return;

            case 16:
                this.pieGridRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.chart = ((Visifire.Charts.Chart)(target));
                return;

            case 19:
                this.LegendGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:
                this.legend1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 21:
                this.legend2 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 22:
                this.GroupRoot = ((System.Windows.Controls.Canvas)(target));
                return;

            case 23:
                this.PoliceCase0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.Persons0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.PolicePower0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.PoliceCase1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.Persons1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.PolicePower1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.PoliceCase2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.Persons2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.PolicePower2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.PoliceCase3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.Persons3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.PolicePower3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.PoliceCase4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.Persons4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:
                this.PolicePower4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.PoliceCases0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.Personss0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.PolicePowers0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.PoliceCases1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.Personss1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.PolicePowers1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.PoliceCases2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.Personss2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 46:
                this.PolicePowers2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.PoliceCases3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 48:
                this.Personss3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 49:
                this.PolicePowers3 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }