Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

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

            #line 67 "..\..\MainWindow.xaml"
                this.TiltleBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TiltleBar_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\MainWindow.xaml"
                this.btnMinimize.Click += new System.Windows.RoutedEventHandler(this.btnMinimize_Click);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\MainWindow.xaml"
                this.btnMaximize.Click += new System.Windows.RoutedEventHandler(this.btnMaximize_Click);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\MainWindow.xaml"
                this.btnpower.Click += new System.Windows.RoutedEventHandler(this.btnpower_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 117 "..\..\MainWindow.xaml"
                this.btnOpenMenu.Click += new System.Windows.RoutedEventHandler(this.btnOpenMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 123 "..\..\MainWindow.xaml"
                this.btnCloseMenu.Click += new System.Windows.RoutedEventHandler(this.btnCloseMenu_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.DigtalClock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.GridTempChart = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.GridTemp = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.BlackTorue = ((WPF_GUI_Demo.Black_Gauge.ArcGauge)(target));
                return;

            case 13:
                this.BlackRpm = ((WPF_GUI_Demo.Black_Gauge.ArcGauge)(target));
                return;

            case 14:
                this.BlackTemp = ((WPF_GUI_Demo.Black_Gauge.ArcGauge)(target));
                return;

            case 15:
                this.valueUrms1 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.valueUrms2 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.valueUrms3 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.valueUdc4 = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.valueIdc1 = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.valueIdc2 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.valueIdc3 = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.valueIdc4 = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.valueA1 = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.valueA2 = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.valueA3 = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.valueOFF = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.valuePm = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.valueCHA = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.valueCHB = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.valuef1 = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.GridChart = ((System.Windows.Controls.Grid)(target));

            #line 305 "..\..\MainWindow.xaml"
                this.GridChart.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MainItemsGrid_MouseDown_1);

            #line default
            #line hidden
                return;

            case 32:
                this.LineChart = ((WPF_GUI_Demo.LineChart)(target));
                return;

            case 33:
                this.DownGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 35:
                this.tgbGuages = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 325 "..\..\MainWindow.xaml"
                this.tgbGuages.Click += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked);

            #line default
            #line hidden
                return;

            case 36:
                this.scrollBarGuages = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 37:
                this.Rpm1 = ((WPF_GUI_Demo.Guages.RpmGauge)(target));
                return;

            case 38:
                this.Rpm2 = ((WPF_GUI_Demo.Guages.RpmGauge)(target));
                return;

            case 39:
                this.Temp1 = ((WPF_GUI_Demo.Guages.TempGauge)(target));
                return;

            case 40:
                this.Temp2 = ((WPF_GUI_Demo.Guages.TempGauge)(target));
                return;

            case 41:
                this.Torque1 = ((WPF_GUI_Demo.Guages.TorqueGauge)(target));
                return;

            case 42:
                this.Torque2 = ((WPF_GUI_Demo.Guages.TorqueGauge)(target));
                return;

            case 43:
                this.scrollBarValues = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 44:
                this.valueS1 = ((System.Windows.Controls.Label)(target));
                return;

            case 45:
                this.valueS2 = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.valueS3 = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.valueS4 = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.valueOFF2 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 50:
                this.valueP2 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 52:
                this.valueP4 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 54:
                this.valueQ1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 56:
                this.valueQ3 = ((System.Windows.Controls.Label)(target));
                return;

            case 57:
                this.valueUthd1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 59:
                this.valueUthd3 = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.leftGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 61:
                this.stackPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 62:

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

            #line default
            #line hidden
                return;

            case 63:

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

            #line default
            #line hidden
                return;

            case 64:

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

            #line default
            #line hidden
                return;

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

            #line 487 "..\..\MainWindow.xaml"
                this.SocketClient.Click += new System.Windows.RoutedEventHandler(this.SocketClient_Click);

            #line default
            #line hidden
                return;

            case 66:
                this.BtnGoleft = ((System.Windows.Controls.Button)(target));

            #line 505 "..\..\MainWindow.xaml"
                this.BtnGoleft.Click += new System.Windows.RoutedEventHandler(this.BtnGoleft_Click);

            #line default
            #line hidden
                return;

            case 67:
                this.BtnGoright = ((System.Windows.Controls.Button)(target));

            #line 513 "..\..\MainWindow.xaml"
                this.BtnGoright.Click += new System.Windows.RoutedEventHandler(this.BtnGoright_Click);

            #line default
            #line hidden
                return;

            case 68:

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

            #line default
            #line hidden
                return;

            case 69:
                this.BtnLogout = ((System.Windows.Controls.Button)(target));

            #line 535 "..\..\MainWindow.xaml"
                this.BtnLogout.Click += new System.Windows.RoutedEventHandler(this.BtnLogout_Click);

            #line default
            #line hidden
                return;

            case 70:
                this.RightGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 71:
                this.txt_UserName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 72:
                this.btnStartSimulation = ((System.Windows.Controls.Button)(target));

            #line 581 "..\..\MainWindow.xaml"
                this.btnStartSimulation.Click += new System.Windows.RoutedEventHandler(this.btnStartSimulation_Click);

            #line default
            #line hidden
                return;

            case 73:
                this.RightListview = ((System.Windows.Controls.ListView)(target));
                return;

            case 74:
                this.txtSearch = ((System.Windows.Controls.TextBox)(target));

            #line 614 "..\..\MainWindow.xaml"
                this.txtSearch.KeyUp += new System.Windows.Input.KeyEventHandler(this.txtSearch_KeyUp);

            #line default
            #line hidden
                return;

            case 75:

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

            #line default
            #line hidden
                return;

            case 76:
                this.ACBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 77:
                this.resultStack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 78:

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

            #line default
            #line hidden
                return;

            case 79:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        private static void Rerender(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ArcGauge gauge = d as ArcGauge;

            gauge.RenderGauge();
        }