Ejemplo n.º 1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((Window)target).Closing                += new CancelEventHandler(this.KeymapCanvasWindow_Closing);
                ((Window)target).Closed                 += new EventHandler(this.CustomWindow_Closed);
                ((FrameworkElement)target).Loaded       += new RoutedEventHandler(this.Window_Loaded);
                ((Window)target).LocationChanged        += new EventHandler(this.CustomWindow_LocationChanged);
                ((UIElement)target).MouseLeftButtonDown += new MouseButtonEventHandler(this.CustomWindow_MouseDown);
                ((FrameworkElement)target).SizeChanged  += new SizeChangedEventHandler(this.CustomWindow_SizeChanged);
                break;

            case 2:
                ((UIElement)target).MouseLeftButtonDown += new MouseButtonEventHandler(this.Canvas_MouseDown);
                break;

            case 3:
                this.mCanvas                 = (Canvas)target;
                this.mCanvas.MouseEnter     += new MouseEventHandler(this.Canvas_MouseEnter);
                this.mCanvas.PreviewMouseUp += new MouseButtonEventHandler(this.Canvas_MouseUp);
                this.mCanvas.MouseDown      += new MouseButtonEventHandler(this.CustomWindow_MouseDown);
                break;

            case 4:
                this.mCanvasImage = (CustomPictureBox)target;
                break;

            case 5:
                this.mGrid = (Grid)target;
                break;

            case 6:
                this.mCanvas2 = (Canvas)target;
                break;

            case 7:
                this.mOnboardingControl = (OnboardingOverlayControl)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((BlueStacks.BlueStacksUI.KeymapCanvasWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.KeymapCanvasWindow_Closing);

            #line default
            #line hidden

            #line 8 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((BlueStacks.BlueStacksUI.KeymapCanvasWindow)(target)).Closed += new System.EventHandler(this.CustomWindow_Closed);

            #line default
            #line hidden

            #line 8 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((BlueStacks.BlueStacksUI.KeymapCanvasWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((BlueStacks.BlueStacksUI.KeymapCanvasWindow)(target)).LocationChanged += new System.EventHandler(this.CustomWindow_LocationChanged);

            #line default
            #line hidden

            #line 9 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((BlueStacks.BlueStacksUI.KeymapCanvasWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.CustomWindow_MouseDown);

            #line default
            #line hidden

            #line 10 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((BlueStacks.BlueStacksUI.KeymapCanvasWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.CustomWindow_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\..\keymap\keymapcanvaswindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\..\keymap\keymapcanvaswindow.xaml"
                this.mCanvas.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Canvas_MouseEnter);

            #line default
            #line hidden

            #line 14 "..\..\..\keymap\keymapcanvaswindow.xaml"
                this.mCanvas.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseUp);

            #line default
            #line hidden

            #line 14 "..\..\..\keymap\keymapcanvaswindow.xaml"
                this.mCanvas.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.CustomWindow_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.mCanvasImage = ((BlueStacks.Common.CustomPictureBox)(target));
                return;

            case 5:
                this.mGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 7:
                this.mOnboardingControl = ((BlueStacks.BlueStacksUI.OnboardingOverlayControl)(target));
                return;
            }
            this._contentLoaded = true;
        }