예제 #1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((FrameworkElement)target).Loaded     += new RoutedEventHandler(this.UserControl_Loaded);
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.UserControl_MouseLeftButtonUp);
                break;

            case 2:
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.Grid_MouseLeftButtonUp);
                break;

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

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

            case 5:
                this.mLblBlueStacksSettings = (Label)target;
                break;

            case 6:
                this.mCrossButton = (CustomPictureBox)target;
                break;

            case 7:
                this.mEnableVTPopup = (CustomPopUp)target;
                break;

            case 8:
                this.EnableVtInfo = (TextBlock)target;
                this.EnableVtInfo.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.EnableVtInfo_PreviewMouseLeftButtonUp);
                break;

            case 9:
                this.mBottomGrid = (Grid)target;
                break;

            case 10:
                this.settingsStackPanel = (StackPanel)target;
                break;

            case 11:
                this.mSelectedLine = (Line)target;
                break;

            case 12:
                this.settingsWindowGrid = (Grid)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
예제 #2
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((FrameworkElement)target).Loaded      += new RoutedEventHandler(this.NCSoftTopBar_Loaded);
                ((FrameworkElement)target).SizeChanged += new SizeChangedEventHandler(this.NCSoftTopBar_SizeChanged);
                break;

            case 2:
                this.mMainGrid = (Grid)target;
                break;

            case 3:
                this.mTitleIcon = (CustomPictureBox)target;
                break;

            case 4:
                this.mWindowHeaderGrid = (StackPanel)target;
                break;

            case 5:
                this.mAppName = (TextBlock)target;
                break;

            case 6:
                this.mGamenameSeparator = (Line)target;
                break;

            case 7:
                this.mCharacterName = (TextBlock)target;
                break;

            case 8:
                this.mStreamingTopbarGrid = (Grid)target;
                break;

            case 9:
                this.mBorder = (Border)target;
                break;

            case 10:
                this.mNcTopBarControlGrid = (Grid)target;
                break;

            case 11:
                this.mMacroRecordGrid = (Grid)target;
                break;

            case 12:
                this.mMacroRecordControl = (MacroTopBarRecordControl)target;
                break;

            case 13:
                this.mMacroPlayGrid = (Grid)target;
                break;

            case 14:
                this.mMacroPlayControl = (MacroTopBarPlayControl)target;
                break;

            case 15:
                this.mVideoRecordingStatusGrid = (Grid)target;
                break;

            case 16:
                this.mVideoRecordStatusControl = (VideoRecordingStatus)target;
                break;

            case 17:
                this.mOperationsSyncGrid             = (Grid)target;
                this.mOperationsSyncGrid.MouseEnter += new MouseEventHandler(this.OperationsSyncGrid_MouseEnter);
                this.mOperationsSyncGrid.MouseLeave += new MouseEventHandler(this.OperationsSyncGrid_MouseLeave);
                break;

            case 18:
                this.mSyncMaskBorder = (Border)target;
                break;

            case 19:
                this.mStopSyncButton = (CustomPictureBox)target;
                this.mStopSyncButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.StopSyncButton_PreviewMouseLeftButtonUp);
                break;

            case 20:
                this.mControlBtnPanel = (StackPanel)target;
                break;

            case 21:
                this.mSettingsButton = (Grid)target;
                this.mSettingsButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.SettingsButton_MouseLeftButtonUp);
                break;

            case 22:
                this.mSettingsButtonImage = (CustomPictureBox)target;
                break;

            case 23:
                this.mSettingsButtonText = (TextBlock)target;
                break;

            case 24:
                this.mMinimizeButton = (Grid)target;
                this.mMinimizeButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.MinimizeButton_MouseLeftButtonUp);
                break;

            case 25:
                this.mMinimizeButtonImage = (CustomPictureBox)target;
                break;

            case 26:
                this.mMinimizeButtonText = (TextBlock)target;
                break;

            case 27:
                this.mMaximizeButton = (Grid)target;
                this.mMaximizeButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.MaxmizeButton_MouseLeftButtonUp);
                break;

            case 28:
                this.mMaximizeButtonImage = (CustomPictureBox)target;
                break;

            case 29:
                this.mMaximizeButtonText = (TextBlock)target;
                break;

            case 30:
                this.mCloseButton = (Grid)target;
                this.mCloseButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.CloseButton_MouseLeftButtonUp);
                break;

            case 31:
                this.mCloseButtonImage = (CustomPictureBox)target;
                break;

            case 32:
                this.mCloseButtonText = (TextBlock)target;
                break;

            case 33:
                this.mSidebarButton = (Grid)target;
                this.mSidebarButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.MSidebarButton_MouseLeftButtonUp);
                break;

            case 34:
                this.mSidebarButtonImage = (CustomPictureBox)target;
                break;

            case 35:
                this.mSidebarButtonText = (TextBlock)target;
                break;

            case 36:
                this.mMacroRecorderToolTipPopup = (BlueStacks.Common.CustomPopUp)target;
                break;

            case 37:
                this.dummyGrid = (Grid)target;
                break;

            case 38:
                this.mMacroRecordingTooltip = (TextBlock)target;
                break;

            case 39:
                this.mUpArrow = (Path)target;
                break;

            case 40:
                this.mMacroRunningToolTipPopup = (BlueStacks.Common.CustomPopUp)target;
                break;

            case 41:
                this.grid = (Grid)target;
                break;

            case 42:
                this.mMacroRunningTooltip = (TextBlock)target;
                break;

            case 43:
                this.mSettingsDropdownPopup         = (BlueStacks.Common.CustomPopUp)target;
                this.mSettingsDropdownPopup.Opened += new EventHandler(this.SettingsPopup_Opened);
                this.mSettingsDropdownPopup.Closed += new EventHandler(this.SettingsPopup_Closed);
                break;

            case 44:
                this.mSettingsDropdownBorder = (Border)target;
                break;

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

            case 46:
                this.mMaskBorder = (Border)target;
                break;

            case 47:
                this.mSettingsDropDownControl = (SettingsWindowDropdown)target;
                break;

            case 48:
                this.mSyncInstancesToolTipPopup = (CustomPopUp)target;
                break;

            case 49:
                this.mDummyGrid = (Grid)target;
                break;

            case 50:
                this.mUpwardArrow = (Path)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }