Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.YouAirPaint = ((You_AirPaint.AirPaint)(target));
     return;
     case 2:
     
     #line 29 "..\..\AirPaint.xaml"
     ((System.Windows.Controls.Canvas)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.MouseMoveHandler);
     
     #line default
     #line hidden
     return;
     case 3:
     this.HelpCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 4:
     this.start = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\AirPaint.xaml"
     this.start.Click += new System.Windows.RoutedEventHandler(this.Start_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.LeftArrowColours = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.RightArrowTools = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.Features = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     this.SelectColour = ((System.Windows.Controls.Image)(target));
     return;
     case 9:
     this.SelectTool = ((System.Windows.Controls.Image)(target));
     return;
     case 10:
     this.StartPainting = ((System.Windows.Controls.Image)(target));
     return;
     case 11:
     this.FeaturesDesc = ((System.Windows.Controls.Image)(target));
     return;
     case 12:
     this.SelectColourDesc = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     this.SelectToolDesc = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.StartPaintingDesc = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.StartImage = ((System.Windows.Controls.Image)(target));
     return;
     case 16:
     this.RightArrowStart = ((System.Windows.Controls.Image)(target));
     return;
     case 17:
     this.PaintCanvasBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 18:
     this.PaintCanvas = ((System.Windows.Controls.Canvas)(target));
     
     #line 51 "..\..\AirPaint.xaml"
     this.PaintCanvas.SizeChanged += new System.Windows.SizeChangedEventHandler(this.PaintCanvas_SizeChanged);
     
     #line default
     #line hidden
     return;
     case 19:
     this.KinectVideo = ((System.Windows.Controls.Image)(target));
     return;
     case 20:
     this.PaintImage = ((System.Windows.Controls.Image)(target));
     return;
     case 21:
     this.YouAirPaintCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 22:
     this.Titulo = ((System.Windows.Controls.Image)(target));
     return;
     case 23:
     this.MainMenuButton = ((System.Windows.Controls.Button)(target));
     
     #line 60 "..\..\AirPaint.xaml"
     this.MainMenuButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.Up = ((System.Windows.Controls.Button)(target));
     
     #line 65 "..\..\AirPaint.xaml"
     this.Up.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.Down = ((System.Windows.Controls.Button)(target));
     
     #line 69 "..\..\AirPaint.xaml"
     this.Down.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.Restart = ((System.Windows.Controls.Button)(target));
     
     #line 73 "..\..\AirPaint.xaml"
     this.Restart.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.Mail = ((System.Windows.Controls.Button)(target));
     
     #line 76 "..\..\AirPaint.xaml"
     this.Mail.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     this.Cam = ((System.Windows.Controls.Button)(target));
     
     #line 79 "..\..\AirPaint.xaml"
     this.Cam.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.WrapTools = ((System.Windows.Controls.Canvas)(target));
     return;
     case 30:
     this.Tool0 = ((System.Windows.Controls.Image)(target));
     return;
     case 31:
     this.Tool1 = ((System.Windows.Controls.Image)(target));
     return;
     case 32:
     this.Tool2 = ((System.Windows.Controls.Image)(target));
     return;
     case 33:
     this.Tool3 = ((System.Windows.Controls.Image)(target));
     return;
     case 34:
     this.ScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 35:
     this.WrapScrollPanel = ((System.Windows.Controls.WrapPanel)(target));
     
     #line 90 "..\..\AirPaint.xaml"
     this.WrapScrollPanel.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Button_Click_Colours));
     
     #line default
     #line hidden
     return;
     case 36:
     this.Pointer = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.YouAirPaint = ((You_AirPaint.AirPaint)(target));
                return;

            case 2:

            #line 29 "..\..\AirPaint.xaml"
                ((System.Windows.Controls.Canvas)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.MouseMoveHandler);

            #line default
            #line hidden
                return;

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

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

            #line 31 "..\..\AirPaint.xaml"
                this.start.Click += new System.Windows.RoutedEventHandler(this.Start_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.LeftArrowColours = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.RightArrowTools = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.Features = ((System.Windows.Controls.Image)(target));
                return;

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

            case 9:
                this.SelectTool = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.StartPainting = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.FeaturesDesc = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.SelectColourDesc = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.SelectToolDesc = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.StartPaintingDesc = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.StartImage = ((System.Windows.Controls.Image)(target));
                return;

            case 16:
                this.RightArrowStart = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this.PaintCanvasBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 18:
                this.PaintCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 51 "..\..\AirPaint.xaml"
                this.PaintCanvas.SizeChanged += new System.Windows.SizeChangedEventHandler(this.PaintCanvas_SizeChanged);

            #line default
            #line hidden
                return;

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

            case 20:
                this.PaintImage = ((System.Windows.Controls.Image)(target));
                return;

            case 21:
                this.YouAirPaintCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 22:
                this.Titulo = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 60 "..\..\AirPaint.xaml"
                this.MainMenuButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 65 "..\..\AirPaint.xaml"
                this.Up.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 69 "..\..\AirPaint.xaml"
                this.Down.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 73 "..\..\AirPaint.xaml"
                this.Restart.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 76 "..\..\AirPaint.xaml"
                this.Mail.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\AirPaint.xaml"
                this.Cam.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.WrapTools = ((System.Windows.Controls.Canvas)(target));
                return;

            case 30:
                this.Tool0 = ((System.Windows.Controls.Image)(target));
                return;

            case 31:
                this.Tool1 = ((System.Windows.Controls.Image)(target));
                return;

            case 32:
                this.Tool2 = ((System.Windows.Controls.Image)(target));
                return;

            case 33:
                this.Tool3 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 35:
                this.WrapScrollPanel = ((System.Windows.Controls.WrapPanel)(target));

            #line 90 "..\..\AirPaint.xaml"
                this.WrapScrollPanel.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Button_Click_Colours));

            #line default
            #line hidden
                return;

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