Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.sub_analyzer = ((Schoolworks_image_and_color.Analyzer)(target));

            #line 8 "..\..\Analyzer.xaml"
                this.sub_analyzer.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 9 "..\..\Analyzer.xaml"
                this.sub_analyzer.Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden
                return;

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

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

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

            #line 20 "..\..\Analyzer.xaml"
                this.btn_analyze.Click += new System.Windows.RoutedEventHandler(this.Analyze_click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.rect_color1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.rect_color2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.rect_color3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.rect_color4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.rect_color5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.rect_color6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.rect_color7 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.rect_color8 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.rect_color9 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 15:
                this.rect_color10 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.rect_color11 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.rect_color12 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.rect_color13 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 19:
                this.rect_color14 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 20:
                this.rect_color15 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 21:
                this.rect_color16 = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            #line 62 "..\..\Analyzer.xaml"
                this.btn_color1.Click += new System.Windows.RoutedEventHandler(this.Detail_click1);

            #line default
            #line hidden
                return;

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

            #line 63 "..\..\Analyzer.xaml"
                this.btn_color2.Click += new System.Windows.RoutedEventHandler(this.Detail_click2);

            #line default
            #line hidden
                return;

            case 24:
                this.btn_color3 = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\Analyzer.xaml"
                this.btn_color3.Click += new System.Windows.RoutedEventHandler(this.Detail_click3);

            #line default
            #line hidden
                return;

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

            #line 65 "..\..\Analyzer.xaml"
                this.btn_color4.Click += new System.Windows.RoutedEventHandler(this.Detail_click4);

            #line default
            #line hidden
                return;

            case 26:
                this.btn_color5 = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\Analyzer.xaml"
                this.btn_color5.Click += new System.Windows.RoutedEventHandler(this.Detail_click5);

            #line default
            #line hidden
                return;

            case 27:
                this.btn_color6 = ((System.Windows.Controls.Button)(target));

            #line 67 "..\..\Analyzer.xaml"
                this.btn_color6.Click += new System.Windows.RoutedEventHandler(this.Detail_click6);

            #line default
            #line hidden
                return;

            case 28:
                this.btn_color7 = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\Analyzer.xaml"
                this.btn_color7.Click += new System.Windows.RoutedEventHandler(this.Detail_click7);

            #line default
            #line hidden
                return;

            case 29:
                this.btn_color8 = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\Analyzer.xaml"
                this.btn_color8.Click += new System.Windows.RoutedEventHandler(this.Detail_click8);

            #line default
            #line hidden
                return;

            case 30:
                this.btn_color9 = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\Analyzer.xaml"
                this.btn_color9.Click += new System.Windows.RoutedEventHandler(this.Detail_click9);

            #line default
            #line hidden
                return;

            case 31:
                this.btn_color10 = ((System.Windows.Controls.Button)(target));

            #line 71 "..\..\Analyzer.xaml"
                this.btn_color10.Click += new System.Windows.RoutedEventHandler(this.Detail_click10);

            #line default
            #line hidden
                return;

            case 32:
                this.btn_color11 = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\Analyzer.xaml"
                this.btn_color11.Click += new System.Windows.RoutedEventHandler(this.Detail_click11);

            #line default
            #line hidden
                return;

            case 33:
                this.btn_color12 = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\Analyzer.xaml"
                this.btn_color12.Click += new System.Windows.RoutedEventHandler(this.Detail_click12);

            #line default
            #line hidden
                return;

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

            #line 74 "..\..\Analyzer.xaml"
                this.btn_color13.Click += new System.Windows.RoutedEventHandler(this.Detail_click13);

            #line default
            #line hidden
                return;

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

            #line 75 "..\..\Analyzer.xaml"
                this.btn_color14.Click += new System.Windows.RoutedEventHandler(this.Detail_click14);

            #line default
            #line hidden
                return;

            case 36:
                this.btn_color15 = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\Analyzer.xaml"
                this.btn_color15.Click += new System.Windows.RoutedEventHandler(this.Detail_click15);

            #line default
            #line hidden
                return;

            case 37:
                this.btn_color16 = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\Analyzer.xaml"
                this.btn_color16.Click += new System.Windows.RoutedEventHandler(this.Detail_click16);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.sub_analyzer = ((Schoolworks_image_and_color.Analyzer)(target));
     
     #line 8 "..\..\Analyzer.xaml"
     this.sub_analyzer.Closing += new System.ComponentModel.CancelEventHandler(this.ClosingWindow);
     
     #line default
     #line hidden
     
     #line 9 "..\..\Analyzer.xaml"
     this.sub_analyzer.Activated += new System.EventHandler(this.ActivatedWindow);
     
     #line default
     #line hidden
     return;
     case 2:
     this.textBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.filename_block = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.btn_analyze = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\Analyzer.xaml"
     this.btn_analyze.Click += new System.Windows.RoutedEventHandler(this.ActionAnalyzeClick);
     
     #line default
     #line hidden
     return;
     case 5:
     this.txt_status = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.txt_range = ((System.Windows.Controls.TextBox)(target));
     
     #line 23 "..\..\Analyzer.xaml"
     this.txt_range.GotFocus += new System.Windows.RoutedEventHandler(this.ActionRangeFocus);
     
     #line default
     #line hidden
     
     #line 23 "..\..\Analyzer.xaml"
     this.txt_range.LostFocus += new System.Windows.RoutedEventHandler(this.ActionRangeLostFocus);
     
     #line default
     #line hidden
     return;
     case 7:
     this.rect_color1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 8:
     this.rect_color2 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 9:
     this.rect_color3 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 10:
     this.rect_color4 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 11:
     this.rect_color5 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 12:
     this.rect_color6 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 13:
     this.rect_color7 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 14:
     this.rect_color8 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 15:
     this.rect_color9 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 16:
     this.rect_color10 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 17:
     this.rect_color11 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 18:
     this.rect_color12 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 19:
     this.rect_color13 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 20:
     this.rect_color14 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 21:
     this.rect_color15 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 22:
     this.rect_color16 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 23:
     this.btn_color1 = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\Analyzer.xaml"
     this.btn_color1.Click += new System.Windows.RoutedEventHandler(this.ActionDetail1);
     
     #line default
     #line hidden
     return;
     case 24:
     this.btn_color2 = ((System.Windows.Controls.Button)(target));
     
     #line 67 "..\..\Analyzer.xaml"
     this.btn_color2.Click += new System.Windows.RoutedEventHandler(this.ActionDetail2);
     
     #line default
     #line hidden
     return;
     case 25:
     this.btn_color3 = ((System.Windows.Controls.Button)(target));
     
     #line 68 "..\..\Analyzer.xaml"
     this.btn_color3.Click += new System.Windows.RoutedEventHandler(this.ActionDetail3);
     
     #line default
     #line hidden
     return;
     case 26:
     this.btn_color4 = ((System.Windows.Controls.Button)(target));
     
     #line 69 "..\..\Analyzer.xaml"
     this.btn_color4.Click += new System.Windows.RoutedEventHandler(this.ActionDetail4);
     
     #line default
     #line hidden
     return;
     case 27:
     this.btn_color5 = ((System.Windows.Controls.Button)(target));
     
     #line 70 "..\..\Analyzer.xaml"
     this.btn_color5.Click += new System.Windows.RoutedEventHandler(this.ActionDetail5);
     
     #line default
     #line hidden
     return;
     case 28:
     this.btn_color6 = ((System.Windows.Controls.Button)(target));
     
     #line 71 "..\..\Analyzer.xaml"
     this.btn_color6.Click += new System.Windows.RoutedEventHandler(this.ActionDetail6);
     
     #line default
     #line hidden
     return;
     case 29:
     this.btn_color7 = ((System.Windows.Controls.Button)(target));
     
     #line 72 "..\..\Analyzer.xaml"
     this.btn_color7.Click += new System.Windows.RoutedEventHandler(this.ActionDetail7);
     
     #line default
     #line hidden
     return;
     case 30:
     this.btn_color8 = ((System.Windows.Controls.Button)(target));
     
     #line 73 "..\..\Analyzer.xaml"
     this.btn_color8.Click += new System.Windows.RoutedEventHandler(this.ActionDetail8);
     
     #line default
     #line hidden
     return;
     case 31:
     this.btn_color9 = ((System.Windows.Controls.Button)(target));
     
     #line 74 "..\..\Analyzer.xaml"
     this.btn_color9.Click += new System.Windows.RoutedEventHandler(this.ActionDetail9);
     
     #line default
     #line hidden
     return;
     case 32:
     this.btn_color10 = ((System.Windows.Controls.Button)(target));
     
     #line 75 "..\..\Analyzer.xaml"
     this.btn_color10.Click += new System.Windows.RoutedEventHandler(this.ActionDetail10);
     
     #line default
     #line hidden
     return;
     case 33:
     this.btn_color11 = ((System.Windows.Controls.Button)(target));
     
     #line 76 "..\..\Analyzer.xaml"
     this.btn_color11.Click += new System.Windows.RoutedEventHandler(this.ActionDetail11);
     
     #line default
     #line hidden
     return;
     case 34:
     this.btn_color12 = ((System.Windows.Controls.Button)(target));
     
     #line 77 "..\..\Analyzer.xaml"
     this.btn_color12.Click += new System.Windows.RoutedEventHandler(this.ActionDetail12);
     
     #line default
     #line hidden
     return;
     case 35:
     this.btn_color13 = ((System.Windows.Controls.Button)(target));
     
     #line 78 "..\..\Analyzer.xaml"
     this.btn_color13.Click += new System.Windows.RoutedEventHandler(this.ActionDetail13);
     
     #line default
     #line hidden
     return;
     case 36:
     this.btn_color14 = ((System.Windows.Controls.Button)(target));
     
     #line 79 "..\..\Analyzer.xaml"
     this.btn_color14.Click += new System.Windows.RoutedEventHandler(this.ActionDetail14);
     
     #line default
     #line hidden
     return;
     case 37:
     this.btn_color15 = ((System.Windows.Controls.Button)(target));
     
     #line 80 "..\..\Analyzer.xaml"
     this.btn_color15.Click += new System.Windows.RoutedEventHandler(this.ActionDetail15);
     
     #line default
     #line hidden
     return;
     case 38:
     this.btn_color16 = ((System.Windows.Controls.Button)(target));
     
     #line 81 "..\..\Analyzer.xaml"
     this.btn_color16.Click += new System.Windows.RoutedEventHandler(this.ActionDetail16);
     
     #line default
     #line hidden
     return;
     case 39:
     this.img_color_histogram_blue = ((System.Windows.Controls.Image)(target));
     return;
     case 40:
     this.img_color_histogram_red = ((System.Windows.Controls.Image)(target));
     return;
     case 41:
     this.img_color_histogram_green = ((System.Windows.Controls.Image)(target));
     return;
     case 42:
     this.img_color_histogram_total = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }