Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window_bear = ((PD.NavigationPages.Window_Bear)(target));

            #line 15 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.window_bear.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 18 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.window_bear.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.grid_test_result_MouseWheel);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.window_grid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown);

            #line default
            #line hidden

            #line 55 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.window_grid.MouseMove += new System.Windows.Input.MouseEventHandler(this.Grid_MouseMove);

            #line default
            #line hidden

            #line 56 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.window_grid.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.window_grid_row_1 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 4:
                this.btn_bear_setting = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 79 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_bear_setting.Click += new System.Windows.RoutedEventHandler(this.btn_bear_setting_Click);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_min.Click += new System.Windows.RoutedEventHandler(this.btn_min_Click);

            #line default
            #line hidden
                return;

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

            #line 94 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_close.Click += new System.Windows.RoutedEventHandler(this.btn_close_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 102 "..\..\..\NavigationPages\Window_Bear.xaml"
                ((System.Windows.Controls.Border)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.image_MouseEnter);

            #line default
            #line hidden

            #line 103 "..\..\..\NavigationPages\Window_Bear.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.grid_sector_btns_MouseLeave);

            #line default
            #line hidden
                return;

            case 8:
                this.image = ((System.Windows.Controls.Image)(target));

            #line 112 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.image.Loaded += new System.Windows.RoutedEventHandler(this.Image_Loaded);

            #line default
            #line hidden

            #line 113 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.image.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown);

            #line default
            #line hidden

            #line 114 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.image.MouseEnter += new System.Windows.Input.MouseEventHandler(this.image_MouseEnter);

            #line default
            #line hidden
                return;

            case 9:
                this.grid_sector_btns = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.btn_aft = ((PD.UI.Sector_BTN)(target));

            #line 142 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_aft.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.btn_aft_Click));

            #line default
            #line hidden
                return;

            case 11:
                this.btn_page2 = ((PD.UI.Sector_BTN)(target));

            #line 153 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_page2.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Btn_page2_Click));

            #line default
            #line hidden
                return;

            case 12:
                this.btn_pre = ((PD.UI.Sector_BTN)(target));

            #line 165 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_pre.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.btn_pre_Click));

            #line default
            #line hidden
                return;

            case 13:
                this.btn_page1 = ((PD.UI.Sector_BTN)(target));

            #line 178 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_page1.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Btn_page1_Click));

            #line default
            #line hidden
                return;

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

            case 15:
                this.grid_test_result = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.txt_No1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.txt_No2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.txt_No3 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

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

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

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

            case 24:

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

            #line default
            #line hidden
                return;

            case 25:

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

            #line default
            #line hidden
                return;

            case 26:

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

            #line default
            #line hidden
                return;

            case 27:

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

            #line default
            #line hidden
                return;

            case 28:

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

            #line default
            #line hidden
                return;

            case 29:

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

            #line default
            #line hidden
                return;

            case 30:

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

            #line default
            #line hidden
                return;

            case 31:

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

            #line default
            #line hidden
                return;

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

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

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

            #line 399 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_SaveBefore.Click += new System.Windows.RoutedEventHandler(this.btn_Save_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.btn_SaveAfter = ((System.Windows.Controls.Button)(target));

            #line 409 "..\..\..\NavigationPages\Window_Bear.xaml"
                this.btn_SaveAfter.Click += new System.Windows.RoutedEventHandler(this.btn_Save_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.PBar = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid_second_rowdefinition = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 2:
                this.bod1 = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.GaugeView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 4:
                this.gauge01 = ((PD.UI.UC_Gauge)(target));
                return;

            case 5:
                this.gauge02 = ((PD.UI.UC_Gauge)(target));
                return;

            case 6:
                this.gauge03 = ((PD.UI.UC_Gauge)(target));
                return;

            case 7:
                this.gauge04 = ((PD.UI.UC_Gauge)(target));
                return;

            case 8:
                this.gauge05 = ((PD.UI.UC_Gauge)(target));
                return;

            case 9:
                this.gauge06 = ((PD.UI.UC_Gauge)(target));
                return;

            case 10:
                this.gauge07 = ((PD.UI.UC_Gauge)(target));
                return;

            case 11:
                this.gauge08 = ((PD.UI.UC_Gauge)(target));
                return;

            case 12:
                this.gauge09 = ((PD.UI.UC_Gauge)(target));
                return;

            case 13:
                this.gauge10 = ((PD.UI.UC_Gauge)(target));
                return;

            case 14:
                this.gauge11 = ((PD.UI.UC_Gauge)(target));
                return;

            case 15:
                this.gauge12 = ((PD.UI.UC_Gauge)(target));
                return;

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

            case 17:

            #line 488 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Border_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 18:

            #line 498 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                ((System.Windows.Controls.Border)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.image_MouseEnter);

            #line default
            #line hidden

            #line 499 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.grid_sector_btns_MouseLeave);

            #line default
            #line hidden
                return;

            case 19:
                this.image = ((System.Windows.Controls.Image)(target));

            #line 510 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.image.MouseEnter += new System.Windows.Input.MouseEventHandler(this.image_MouseEnter);

            #line default
            #line hidden
                return;

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

            case 21:
                this.btn_aft = ((PD.UI.Sector_BTN)(target));

            #line 539 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.btn_aft.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.btn_aft_Click));

            #line default
            #line hidden
                return;

            case 22:
                this.btn_page2 = ((PD.UI.Sector_BTN)(target));

            #line 550 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.btn_page2.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Btn_page2_Click));

            #line default
            #line hidden
                return;

            case 23:
                this.btn_pre = ((PD.UI.Sector_BTN)(target));

            #line 562 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.btn_pre.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.btn_pre_Click));

            #line default
            #line hidden
                return;

            case 24:
                this.btn_page1 = ((PD.UI.Sector_BTN)(target));

            #line 575 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.btn_page1.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Btn_page1_Click));

            #line default
            #line hidden
                return;

            case 25:
                this.btn_bearsay_visual = ((System.Windows.Controls.Button)(target));

            #line 591 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.btn_bearsay_visual.Click += new System.Windows.RoutedEventHandler(this.btn_bearsay_visual_Click);

            #line default
            #line hidden
                return;

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

            case 27:
                this.ToggleBtn_Dac_or_Volt = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 28:
                this.slider_DAC = ((System.Windows.Controls.Slider)(target));

            #line 647 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.slider_DAC.AddHandler(System.Windows.Input.Mouse.PreviewMouseDownEvent, new System.Windows.Input.MouseButtonEventHandler(this.slider_PreviewMouseDown));

            #line default
            #line hidden

            #line 648 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.slider_DAC.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.slider_WL_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 29:
                this.txt_DAC = ((System.Windows.Controls.TextBox)(target));

            #line 793 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.txt_DAC.AddHandler(System.Windows.Input.Keyboard.PreviewKeyDownEvent, new System.Windows.Input.KeyEventHandler(this.txt_Dac_KeyDown));

            #line default
            #line hidden
                return;

            case 30:
                this.ToggleBtn_LaserActive = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 31:
                this.slider_WL = ((System.Windows.Controls.Slider)(target));

            #line 856 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.slider_WL.AddHandler(System.Windows.Input.Mouse.PreviewMouseDownEvent, new System.Windows.Input.MouseButtonEventHandler(this.slider_PreviewMouseDown));

            #line default
            #line hidden

            #line 857 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.slider_WL.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.slider_WL_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 32:
                this.viewbox8 = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 33:
                this.txt_WL = ((System.Windows.Controls.TextBox)(target));

            #line 1003 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.txt_WL.AddHandler(System.Windows.Input.Keyboard.PreviewKeyDownEvent, new System.Windows.Input.KeyEventHandler(this.txt_WL_KeyDown));

            #line default
            #line hidden
                return;

            case 34:
                this.ToggleBtn_LaserConnect = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 35:
                this.slider_Power = ((System.Windows.Controls.Slider)(target));

            #line 1054 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.slider_Power.AddHandler(System.Windows.Input.Mouse.PreviewMouseDownEvent, new System.Windows.Input.MouseButtonEventHandler(this.slider_PreviewMouseDown));

            #line default
            #line hidden

            #line 1055 "..\..\..\NavigationPages\Page_PD_Gauges.xaml"
                this.slider_Power.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.slider_Power_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 36:
                this.txt_power = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }