Exemple #1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mPanel = (StackPanel)target;
                break;

            case 2:
                this.mMoreTabButton = (AppTabButton)target;
                break;

            case 3:
                this.mPopup = (CustomPopUp)target;
                break;

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

            case 5:
                this.mHiddenButtons = (StackPanel)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Exemple #2
0
        private static void OnIsTopmostChanged(
            DependencyObject obj,
            DependencyPropertyChangedEventArgs _)
        {
            CustomPopUp customPopUp = (CustomPopUp)obj;

            customPopUp.SetTopmostState(customPopUp.IsTopmost);
        }
Exemple #3
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mPersistentToastPopupBorder = (Border)target;
                break;

            case 2:
                this.mCloseIcon = (CustomPictureBox)target;
                this.mCloseIcon.MouseLeftButtonUp += new MouseButtonEventHandler(this.MCloseIcon_MouseLeftButtonUp);
                break;

            case 3:
                this.mPersistentToastTextblock = (TextBlock)target;
                break;

            case 4:
                this.mCloseSettingsPopup = (CustomPopUp)target;
                break;

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

            case 6:
                this.mCloseSettingsPopupBorder = (Border)target;
                break;

            case 7:
                this.mMaskBorder1 = (Border)target;
                break;

            case 8:
                ((UIElement)target).MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.mNeverShowAgain_MouseLeftButtonUp);
                break;

            case 9:
                ((UIElement)target).MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.Close_MouseLeftButtonUp);
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Exemple #4
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._this = (SchemeComboBox)target;
                break;

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

            case 3:
                this.TogglePopupButton = (ToggleButton)target;
                break;

            case 4:
                this.mName = (TextBlock)target;
                break;

            case 5:
                this.Arrow = (Path)target;
                break;

            case 6:
                this.mItems = (CustomPopUp)target;
                break;

            case 7:
                this.mSchemesListScrollbar = (ScrollViewer)target;
                break;

            case 8:
                this.Items = (StackPanel)target;
                break;

            case 9:
                this.NewProfile             = (Grid)target;
                this.NewProfile.MouseDown  += new MouseButtonEventHandler(this.NewProfile_MouseDown);
                this.NewProfile.MouseEnter += new MouseEventHandler(this.NewProfile_MouseEnter);
                this.NewProfile.MouseLeave += new MouseEventHandler(this.NewProfile_MouseLeave);
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mShortcutNameTextBlock = (TextBlock)target;
                break;

            case 2:
                this.mShortcutKeyTextBox = (CustomTextBox)target;
                this.mShortcutKeyTextBox.PreviewKeyDown += new KeyEventHandler(this.ShortcutKeyTextBoxKeyDown);
                this.mShortcutKeyTextBox.MouseEnter     += new MouseEventHandler(this.ShortcutKeyTextBoxMouseEnter);
                this.mShortcutKeyTextBox.MouseLeave     += new MouseEventHandler(this.ShortcutKeyTextBoxMouseLeave);
                this.mShortcutKeyTextBox.PreviewKeyUp   += new KeyEventHandler(this.ShortcutKeyTextBoxKeyUp);
                break;

            case 3:
                this.mKeyInfoPopup = (CustomPopUp)target;
                break;

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

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

            case 6:
                this.mDownArrow = (Path)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Exemple #6
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 2:
                this.EngineSettingGrid             = (Grid)target;
                this.EngineSettingGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.EngineSettingGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                this.EngineSettingGrid.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.EngineSettingGrid_MouseLeftButtonUp);
                break;

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

            case 4:
                this.mSettingsBtnNotification = (Ellipse)target;
                break;

            case 5:
                this.mPinToTopGrid             = (Grid)target;
                this.mPinToTopGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mPinToTopGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                break;

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

            case 7:
                this.mPinToTopToggleButton = (CustomPictureBox)target;
                this.mPinToTopToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.PinToTop_MouseLeftButtonUp);
                break;

            case 8:
                this.mStreamingMode             = (Grid)target;
                this.mStreamingMode.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mStreamingMode.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                break;

            case 9:
                this.mStreamingModeImage = (CustomPictureBox)target;
                break;

            case 10:
                this.mStreaminModeToggleButton = (CustomPictureBox)target;
                this.mStreaminModeToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.Streaming_MouseLeftButtonUp);
                break;

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

            case 12:
                this.mMultiInstanceSectionBorderLine = (Separator)target;
                break;

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

            case 14:
                this.mSyncGrid             = (Grid)target;
                this.mSyncGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mSyncGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                this.mSyncGrid.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.SyncGrid_MouseLeftButtonUp);
                break;

            case 15:
                this.mSyncOperationsImage = (CustomPictureBox)target;
                break;

            case 16:
                this.mAutoAlignGrid             = (Grid)target;
                this.mAutoAlignGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mAutoAlignGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                this.mAutoAlignGrid.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.AutoAlign_MouseLeftButtonUp);
                break;

            case 17:
                this.mAutoAlignImage = (CustomPictureBox)target;
                break;

            case 18:
                this.mUpgradeBluestacksStatus                    = (Grid)target;
                this.mUpgradeBluestacksStatus.MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                this.mUpgradeBluestacksStatus.MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                this.mUpgradeBluestacksStatus.MouseLeftButtonUp += new MouseButtonEventHandler(this.mUpgradeBluestacksStatus_MouseLeftButtonUp);
                break;

            case 19:
                this.mUpdateImage = (CustomPictureBox)target;
                break;

            case 20:
                this.mUpgradeBluestacksStatusTextBlock = (TextBlock)target;
                break;

            case 21:
                this.mUpdateDownloadProgressPercentage = (Label)target;
                break;

            case 22:
                this.mUpgradeToFullBlueStacks                    = (Grid)target;
                this.mUpgradeToFullBlueStacks.MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                this.mUpgradeToFullBlueStacks.MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                this.mUpgradeToFullBlueStacks.MouseLeftButtonUp += new MouseButtonEventHandler(this.mUpgradeToFullBlueStacks_MouseLeftButtonUp);
                break;

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

            case 24:
                this.mLogoutButtonGrid                    = (Grid)target;
                this.mLogoutButtonGrid.MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                this.mLogoutButtonGrid.MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                this.mLogoutButtonGrid.MouseLeftButtonUp += new MouseButtonEventHandler(this.LogoutButtonGrid_MouseLeftButtonUp);
                break;

            case 25:
                this.mCustomiseSectionTag = (Grid)target;
                break;

            case 26:
                this.mCustomiseSectionBorderLine = (Separator)target;
                break;

            case 27:
                this.mCustomiseSection = (Grid)target;
                break;

            case 28:
                this.mChangeSkinGrid             = (Grid)target;
                this.mChangeSkinGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mChangeSkinGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                this.mChangeSkinGrid.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mChangeSkinGrid_MouseLeftButtonUp);
                break;

            case 29:
                this.mChangeSkinImage = (CustomPictureBox)target;
                break;

            case 30:
                this.mChangeWallpaperGrid             = (Grid)target;
                this.mChangeWallpaperGrid.MouseEnter += new MouseEventHandler(this.mChangeWallpaperGrid_MouseEnter);
                this.mChangeWallpaperGrid.MouseLeave += new MouseEventHandler(this.mChangeWallpaperGrid_MouseLeave);
                break;

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

            case 32:
                this.mHelpandsupportSectionTag = (Grid)target;
                break;

            case 33:
                this.mHelpAndSupportSectionBorderLine = (Separator)target;
                break;

            case 34:
                this.mHelpandsupportSection = (Grid)target;
                break;

            case 35:
                this.ReportProblemGrid                    = (Grid)target;
                this.ReportProblemGrid.MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                this.ReportProblemGrid.MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                this.ReportProblemGrid.MouseLeftButtonUp += new MouseButtonEventHandler(this.ReportProblemGrid_MouseLeftButtonUp);
                break;

            case 36:
                this.mHelpCenterGrid             = (Grid)target;
                this.mHelpCenterGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mHelpCenterGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                this.mHelpCenterGrid.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mHelpCenterGrid_MouseLeftButtonUp);
                break;

            case 37:
                this.mHelpCenterImage = (CustomPictureBox)target;
                break;

            case 38:
                this.mSpeedUpBstGrid             = (Grid)target;
                this.mSpeedUpBstGrid.MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                this.mSpeedUpBstGrid.MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                this.mSpeedUpBstGrid.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.SpeedUpBstGrid_MouseLeftButtonUp);
                break;

            case 39:
                this.mSpeedUpBstImage = (CustomPictureBox)target;
                break;

            case 40:
                this.mWallpaperPopup = (CustomPopUp)target;
                break;

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

            case 42:
                this.dummyGridForSize = (Grid)target;
                break;

            case 43:
                this.mWallpaperPopupBorder = (Border)target;
                break;

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

            case 45:
                this.mTitleText = (TextBlock)target;
                break;

            case 46:
                this.mBodyText = (TextBlock)target;
                break;

            case 47:
                this.RightArrow = (System.Windows.Shapes.Path)target;
                break;

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

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

            case 50:
                this.dummyGridForSize2 = (Grid)target;
                break;

            case 51:
                this.mPopupGridBorder = (Border)target;
                break;

            case 52:
                this.mMaskBorder2 = (Border)target;
                break;

            case 53:
                this.mChooseNewGrid                    = (Grid)target;
                this.mChooseNewGrid.MouseEnter        += new MouseEventHandler(this.ChooseNewGrid_MouseEnter);
                this.mChooseNewGrid.MouseLeave        += new MouseEventHandler(this.ChooseNewGrid_MouseLeave);
                this.mChooseNewGrid.MouseLeftButtonUp += new MouseButtonEventHandler(this.ChooseNewGrid_MouseLeftButtonUp);
                break;

            case 54:
                this.mSetDefaultGrid                    = (Grid)target;
                this.mSetDefaultGrid.MouseEnter        += new MouseEventHandler(this.SetDefaultGrid_MouseEnter);
                this.mSetDefaultGrid.MouseLeave        += new MouseEventHandler(this.SetDefaultGrid_MouseLeave);
                this.mSetDefaultGrid.MouseLeftButtonUp += new MouseButtonEventHandler(this.SetDefaultGrid_MouseLeftButtonUp);
                break;

            case 55:
                this.mRestoreDefaultText = (TextBlock)target;
                break;

            case 56:
                this.mRightArrow = (System.Windows.Shapes.Path)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((ButtonBase)target).Click        += new RoutedEventHandler(this.Button_Click);
                ((UIElement)target).MouseEnter    += new MouseEventHandler(this.Button_MouseEnter);
                ((UIElement)target).MouseLeave    += new MouseEventHandler(this.Button_MouseLeave);
                ((FrameworkElement)target).Loaded += new RoutedEventHandler(this.Button_Loaded);
                ((UIElement)target).PreviewMouseLeftButtonDown += new MouseButtonEventHandler(this.Button_PreviewMouseLeftButtonDown);
                ((UIElement)target).PreviewMouseLeftButtonUp   += new MouseButtonEventHandler(this.Button_PreviewMouseLeftButtonUp);
                break;

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

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

            case 4:
                this.mAppImageBorder = (Border)target;
                break;

            case 5:
                this.mAppImage = (CustomPictureBox)target;
                break;

            case 6:
                this.mProgressGrid = (Grid)target;
                break;

            case 7:
                this.CustomProgressBar = (BlueProgressBar)target;
                break;

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

            case 9:
                this.mBusyImage = (CustomPictureBox)target;
                break;

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

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

            case 12:
                this.mSuggestedAppPromotionImage = (CustomPictureBox)target;
                break;

            case 13:
                this.mUnInstallTabButton = (CustomPictureBox)target;
                break;

            case 14:
                this.mGl3ErrorIcon = (CustomPictureBox)target;
                break;

            case 15:
                this.mGl3InfoIcon = (CustomPictureBox)target;
                break;

            case 16:
                this.mRedDotNotifIcon = (CustomPictureBox)target;
                break;

            case 17:
                this.AppNameTextBox = (TextBlock)target;
                break;

            case 18:
                this.mGamePadGrid = (Grid)target;
                break;

            case 19:
                this.mGamepadIcon             = (CustomPictureBox)target;
                this.mGamepadIcon.MouseEnter += new MouseEventHandler(this.GamepadIcon_MouseEnter);
                this.mGamepadIcon.MouseLeave += new MouseEventHandler(this.GamepadIcon_MouseLeave);
                break;

            case 20:
                this.mGamePadToolTipPopup = (CustomPopUp)target;
                break;

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

            case 22:
                this.mIconText = (TextBlock)target;
                break;

            case 23:
                this.mUpArrow = (System.Windows.Shapes.Path)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mMaskBorder = (Border)target;
                break;

            case 2:
                this.mMergeMacroWindowHeading = (TextBlock)target;
                break;

            case 3:
                this.mUnifyButton        = (CustomButton)target;
                this.mUnifyButton.Click += new RoutedEventHandler(this.UnifyButton_Click);
                break;

            case 4:
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.Close_MouseLeftButtonUp);
                break;

            case 5:
                this.mCurrentMacroScripts = (StackPanel)target;
                break;

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

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

            case 8:
                this.mHelpCenterImage            = (CustomPictureBox)target;
                this.mHelpCenterImage.MouseDown += new MouseButtonEventHandler(this.mHelpCenterImage_MouseDown);
                break;

            case 9:
                this.mMacroDragControl = (MacroAddedDragControl)target;
                break;

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

            case 11:
                this.mMacroNameStackPanel = (StackPanel)target;
                break;

            case 12:
                this.MacroName              = (CustomTextBox)target;
                this.MacroName.MouseEnter  += new MouseEventHandler(this.MacroName_MouseEnter);
                this.MacroName.MouseLeave  += new MouseEventHandler(this.MacroName_MouseLeave);
                this.MacroName.TextChanged += new TextChangedEventHandler(this.MacroName_TextChanged);
                break;

            case 13:
                this.mMacroSettings        = (CustomButton)target;
                this.mMacroSettings.Click += new RoutedEventHandler(this.MacroSettings_Click);
                break;

            case 14:
                this.mMergeButton        = (CustomButton)target;
                this.mMergeButton.Click += new RoutedEventHandler(this.MergeButton_Click);
                break;

            case 15:
                this.mErrorNamePopup = (CustomPopUp)target;
                break;

            case 16:
                this.mMaskBorder1 = (Border)target;
                break;

            case 17:
                this.mErrorText = (TextBlock)target;
                break;

            case 18:
                this.mDownArrow = (System.Windows.Shapes.Path)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Exemple #9
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((UIElement)target).PreviewMouseDown += new MouseButtonEventHandler(this.HomeApp_PreviewMouseDown);
                break;

            case 2:
                this.mBackgroundImage = (CustomPictureBox)target;
                break;

            case 3:
                this.mInstalledAppText = (Label)target;
                break;

            case 4:
                this.mGridSeparator = (Grid)target;
                break;

            case 5:
                this.mAppSettings             = (CustomPictureBox)target;
                this.mAppSettings.MouseEnter += new MouseEventHandler(this.mAppSettings_MouseEnter);
                break;

            case 6:
                this.mAppSettingsPopup = (CustomPopUp)target;
                break;

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

            case 8:
                this.mAppSettingsPopupBorder = (Border)target;
                break;

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

            case 10:
                ((UIElement)target).MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.mInstallApkGrid_MouseLeftButtonUp);
                break;

            case 11:
                ((UIElement)target).MouseEnter        += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave        += new MouseEventHandler(this.Grid_MouseLeave);
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.mDeleteAppsGrid_MouseLeftButtonUp);
                break;

            case 12:
                this.LeftArrow = (System.Windows.Shapes.Path)target;
                break;

            case 13:
                this.InstalledAppsDrawerScrollBar = (ScrollViewer)target;
                this.InstalledAppsDrawerScrollBar.ScrollChanged += new ScrollChangedEventHandler(this.InstalledAppsDrawerScrollBar_ScrollChanged);
                break;

            case 14:
                this.mAppRecommendationsGrid = (Grid)target;
                break;

            case 15:
                this.mDiscoverApps = (TextBlock)target;
                break;

            case 16:
                this.appRecomScrollViewer = (ScrollViewer)target;
                break;

            case 17:
                this.mAppRecommendationSectionsPanel = (StackPanel)target;
                break;

            case 18:
                this.mAppRecommendationsGenericMessages = (StackPanel)target;
                break;

            case 19:
                this.mAppRecommendationsGenericMessageImage = (CustomPictureBox)target;
                break;

            case 20:
                this.mAppRecommendationsGenericMessageText = (TextBlock)target;
                break;

            case 21:
                this.mSearchGrid             = (Border)target;
                this.mSearchGrid.MouseEnter += new MouseEventHandler(this.Search_MouseEnter);
                this.mSearchGrid.MouseLeave += new MouseEventHandler(this.search_MouseLeave);
                break;

            case 22:
                this.searchTextBoxBorder = (Border)target;
                break;

            case 23:
                this.mSearchTextBox = (TextBox)target;
                this.mSearchTextBox.GotKeyboardFocus  += new KeyboardFocusChangedEventHandler(this.SearchTextBox_GotKeyboardFocus);
                this.mSearchTextBox.LostKeyboardFocus += new KeyboardFocusChangedEventHandler(this.SearchTextBox_LostKeyboardFocus);
                this.mSearchTextBox.KeyDown           += new KeyEventHandler(this.SearchTextBox_KeyDown);
                break;

            case 24:
                this.Mask = (Border)target;
                break;

            case 25:
                ((UIElement)target).MouseUp += new MouseButtonEventHandler(this.CustomPictureBox_MouseUp);
                break;

            case 26:
                this.mSearchRecommendationBorder             = (Border)target;
                this.mSearchRecommendationBorder.MouseLeave += new MouseEventHandler(this.search_MouseLeave);
                break;

            case 27:
                this.searchRecomItems = (StackPanel)target;
                break;

            case 28:
                this.mMultiInstanceControlsGrid = (Grid)target;
                break;

            case 29:
                this.mDockGridBorder = (Border)target;
                break;

            case 30:
                this.mDockGrid = (Grid)target;
                break;

            case 31:
                this.mDockPanel = (StackPanel)target;
                break;

            case 32:
                this.mDockAppIconToolTipPopup = (CustomPopUp)target;
                break;

            case 33:
                this.mMaskBorder2 = (Border)target;
                break;

            case 34:
                this.mDockIconText = (TextBlock)target;
                break;

            case 35:
                this.mDownArrow = (System.Windows.Shapes.Path)target;
                break;

            case 36:
                this.mMoreAppsDockPopup = (CustomPopUp)target;
                break;

            case 37:
                this.mMaskBorder3 = (Border)target;
                break;

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

            case 39:
                this.mCustomMessageBoxCloseButton = (CustomPictureBox)target;
                this.mCustomMessageBoxCloseButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.Close_PreviewMouseLeftButtonUp);
                break;

            case 40:
                this.mMoreAppsDockPanel = (StackPanel)target;
                break;

            case 41:
                this.mSuggestedAppPopUp = (CustomPopUp)target;
                break;

            case 42:
                this.mMaskBorder4 = (Border)target;
                break;

            case 43:
                this.mCloseAppSuggPopup = (CustomPictureBox)target;
                this.mCloseAppSuggPopup.MouseLeftButtonUp += new MouseButtonEventHandler(this.mCloseAppSuggPopup_MouseLeftButtonUp);
                break;

            case 44:
                this.mAppSuggestionPopUp = (TextBlock)target;
                break;

            case 45:
                this.UpArrow = (System.Windows.Shapes.Path)target;
                break;

            case 46:
                this.mLoadingGrid = (ProgressBar)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Exemple #10
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;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((FrameworkElement)target).Loaded += new RoutedEventHandler(this.NotificationSettings_Loaded);
                break;

            case 2:
                this.mScroll = (ScrollViewer)target;
                break;

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

            case 4:
                this.mMinimzeOnCloseCheckBox        = (CustomCheckbox)target;
                this.mMinimzeOnCloseCheckBox.Click += new RoutedEventHandler(this.CheckBox_Click);
                break;

            case 5:
                this.mReadMoreSection = (Label)target;
                this.mReadMoreSection.MouseLeftButtonUp += new MouseButtonEventHandler(this.mReadMoreSection_MouseLeftButtonUp);
                break;

            case 6:
                this.mCollapsedArrow = (System.Windows.Shapes.Path)target;
                break;

            case 7:
                this.mExpandededArrow = (System.Windows.Shapes.Path)target;
                break;

            case 8:
                this.mNotificationModeToggleButton = (CustomToggleButtonWithState)target;
                this.mNotificationModeToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mNotificationModeToggleButton_PreviewMouseLeftButtonUp);
                break;

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

            case 10:
                ((UIElement)target).MouseLeftButtonDown += new MouseButtonEventHandler(this.ReadMoreLinkMouseLeftButtonUp);
                break;

            case 11:
                this.mNotificationSoundToggleButton = (CustomToggleButtonWithState)target;
                this.mNotificationSoundToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mNotificationSoundToggleButton_PreviewMouseLeftButtonUp);
                break;

            case 12:
                this.mRibbonHelp             = (CustomPictureBox)target;
                this.mRibbonHelp.MouseEnter += new MouseEventHandler(this.mRibbonHelp_MouseEnter);
                this.mRibbonHelp.MouseLeave += new MouseEventHandler(this.mRibbonHelp_MouseLeave);
                break;

            case 13:
                this.mRibbonNotificationsToggleButton = (CustomToggleButtonWithState)target;
                this.mRibbonNotificationsToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mRibbonNotificationsToggleButton_PreviewMouseLeftButtonUp);
                break;

            case 14:
                this.mRibbonPopup = (CustomPopUp)target;
                break;

            case 15:
                this.mToastHelp             = (CustomPictureBox)target;
                this.mToastHelp.MouseEnter += new MouseEventHandler(this.mToastHelp_MouseEnter);
                this.mToastHelp.MouseLeave += new MouseEventHandler(this.mToastHelp_MouseLeave);
                break;

            case 16:
                this.mToastNotificationsToggleButton = (CustomToggleButtonWithState)target;
                this.mToastNotificationsToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mToastNotificationsToggleButton_PreviewMouseLeftButtonUp);
                break;

            case 17:
                this.mToastPopup = (CustomPopUp)target;
                break;

            case 18:
                this.mGamepadNotificationHelp             = (CustomPictureBox)target;
                this.mGamepadNotificationHelp.MouseEnter += new MouseEventHandler(this.mGamepadNotificationHelp_MouseEnter);
                this.mGamepadNotificationHelp.MouseLeave += new MouseEventHandler(this.mGamepadNotificationHelp_MouseLeave);
                break;

            case 19:
                this.mGamepadDesktopNotificationToggle = (CustomToggleButtonWithState)target;
                this.mGamepadDesktopNotificationToggle.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mGamepadDesktopNotificationToggleButton_PreviewMouseLeftButtonUp);
                break;

            case 20:
                this.mGamepadNotifPopup = (CustomPopUp)target;
                break;

            case 21:
                this.mAppSpecificNotificationsToggleButton = (CustomToggleButtonWithState)target;
                this.mAppSpecificNotificationsToggleButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mAppSpecificNotificationsToggleButton_PreviewMouseLeftButtonUp);
                break;

            case 22:
                this.mHeaders = (Grid)target;
                break;

            case 23:
                this.mBellHelp             = (CustomPictureBox)target;
                this.mBellHelp.MouseEnter += new MouseEventHandler(this.mBellHelp_MouseEnter);
                this.mBellHelp.MouseLeave += new MouseEventHandler(this.mBellHelp_MouseLeave);
                break;

            case 24:
                this.mBellPopup = (CustomPopUp)target;
                break;

            case 25:
                this.mDesktopHelp             = (CustomPictureBox)target;
                this.mDesktopHelp.MouseEnter += new MouseEventHandler(this.mDesktopHelp_MouseEnter);
                this.mDesktopHelp.MouseLeave += new MouseEventHandler(this.mDesktopHelp_MouseLeave);
                break;

            case 26:
                this.mDesktopPopup = (CustomPopUp)target;
                break;

            case 27:
                this.mStackPanel = (StackPanel)target;
                break;

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

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mEscCheckbox = (CustomPictureBox)target;
                this.mEscCheckbox.MouseLeftButtonUp += new MouseButtonEventHandler(this.mEscCheckbox_MouseLeftButtonUp);
                break;

            case 2:
                this.mKeyMapSwitch = (CustomPictureBox)target;
                this.mKeyMapSwitch.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.SwitchKeyMapButton_PreviewMouseLeftButtonUp);
                break;

            case 3:
                this.mKeyMapButton = (CustomPictureBox)target;
                this.mKeyMapButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.KeyMapButton_PreviewMouseLeftButtonUp);
                break;

            case 4:
                this.mTranslucentControlsButton = (CustomPictureBox)target;
                this.mTranslucentControlsButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.TranslucentControlsButton_PreviewMouseLeftButtonUp);
                break;

            case 5:
                this.mScreenshotBtn = (CustomPictureBox)target;
                this.mScreenshotBtn.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.ScreenshotBtn_MouseUp);
                break;

            case 6:
                this.mVolumeBtn = (CustomPictureBox)target;
                this.mVolumeBtn.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.VolumeBtn_MouseUp);
                break;

            case 7:
                this.mWindowedBtn = (CustomPictureBox)target;
                this.mWindowedBtn.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.WindowedBtn_MouseUp);
                break;

            case 8:
                this.mSettingsBtn = (CustomPictureBox)target;
                this.mSettingsBtn.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.SettingsBtn_MouseUp);
                break;

            case 9:
                this.mVolumePopup = (CustomPopUp)target;
                break;

            case 10:
                this.volumeSliderImage = (CustomPictureBox)target;
                this.volumeSliderImage.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.VolumeSliderImage_PreviewMouseLeftButtonUp);
                break;

            case 11:
                this.mVolumeSlider = (Slider)target;
                this.mVolumeSlider.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.VolumeSlider_PreviewMouseLeftButtonUp);
                break;

            case 12:
                this.mChangeTransparencyPopup = (CustomPopUp)target;
                break;

            case 13:
                this.mTranslucentControlsSliderButton = (CustomPictureBox)target;
                this.mTranslucentControlsSliderButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mTranslucentControlsSliderButton_PreviewMouseLeftButtonUp);
                break;

            case 14:
                this.transSlider = (Slider)target;
                this.transSlider.ValueChanged += new RoutedPropertyChangedEventHandler <double>(this.TransparencySlider_ValueChanged);
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((UIElement)target).PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.BackButton_PreviewMouseLeftButtonUp);
                break;

            case 2:
                ((UIElement)target).PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.HomeButton_PreviewMouseLeftButtonUp);
                break;

            case 3:
                this.mEscCheckbox = (CustomPictureBox)target;
                this.mEscCheckbox.MouseLeftButtonUp += new MouseButtonEventHandler(this.mEscCheckbox_MouseLeftButtonUp);
                break;

            case 4:
                this.mGamePadButtonFullScreen = (CustomPictureBox)target;
                this.mGamePadButtonFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.GamePadButton_PreviewMouseLeftButtonUp);
                break;

            case 5:
                this.mMacroRecorderFullScreen = (CustomPictureBox)target;
                this.mMacroRecorderFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mMacroRecorderLandscape_PreviewMouseLeftButtonUp);
                break;

            case 6:
                this.mKeyMapSwitchFullScreen = (CustomPictureBox)target;
                this.mKeyMapSwitchFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.SwitchKeyMapButton_PreviewMouseLeftButtonUp);
                break;

            case 7:
                this.mKeyMapButtonFullScreen = (CustomPictureBox)target;
                this.mKeyMapButtonFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.KeyMapButton_PreviewMouseLeftButtonUp);
                break;

            case 8:
                this.mTranslucentControlsButtonFullScreen = (CustomPictureBox)target;
                this.mTranslucentControlsButtonFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.TranslucentControlsButton_PreviewMouseLeftButtonUp);
                break;

            case 9:
                this.mFullScreenButton = (CustomPictureBox)target;
                this.mFullScreenButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.FullScreenButton_PreviewMouseLeftButtonUp);
                break;

            case 10:
                this.mLocationButtonFullScreen = (CustomPictureBox)target;
                this.mLocationButtonFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.LocationButton_PreviewMouseLeftButtonUp);
                break;

            case 11:
                ((UIElement)target).PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.ScreenShotButton_PreviewMouseLeftButtonUp);
                break;

            case 12:
                this.mShakeButtonFullScreen = (CustomPictureBox)target;
                this.mShakeButtonFullScreen.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.ShakeButton_PreviewMouseLeftButtonUp);
                break;

            case 13:
                this.mChangeTransparencyPopup = (CustomPopUp)target;
                break;

            case 14:
                this.borderSlider = (Border)target;
                break;

            case 15:
                this.mTranslucentControlsSliderButton = (CustomPictureBox)target;
                this.mTranslucentControlsSliderButton.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.mTranslucentControlsSliderButton_PreviewMouseLeftButtonUp);
                break;

            case 16:
                this.transSlider = (Slider)target;
                this.transSlider.ValueChanged += new RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((UIElement)target).MouseLeftButtonUp += new MouseButtonEventHandler(this.UserControl_MouseLeftButtonUp);
                ((UIElement)target).MouseEnter        += new MouseEventHandler(this.UserControl_MouseEnter);
                ((UIElement)target).MouseLeave        += new MouseEventHandler(this.UserControl_MouseLeave);
                break;

            case 2:
                this.icon = (CustomPictureBox)target;
                break;

            case 3:
                this.titleText = (TextBlock)target;
                break;

            case 4:
                this.dateText = (TextBlock)target;
                break;

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

            case 6:
                this.mSnoozeBtn = (CustomPictureBox)target;
                this.mSnoozeBtn.MouseLeftButtonUp += new MouseButtonEventHandler(this.mSnoozeBtn_MouseLeftButtonUp);
                break;

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

            case 8:
                ((UIElement)target).MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                break;

            case 9:
                this.mLbl1Hour          = (TextBlock)target;
                this.mLbl1Hour.MouseUp += new MouseButtonEventHandler(this.Lbl1Hour_MouseUp);
                break;

            case 10:
                ((UIElement)target).MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                break;

            case 11:
                this.mLbl1Day          = (TextBlock)target;
                this.mLbl1Day.MouseUp += new MouseButtonEventHandler(this.Lbl1Day_MouseUp);
                break;

            case 12:
                ((UIElement)target).MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                break;

            case 13:
                this.mLbl1Week          = (TextBlock)target;
                this.mLbl1Week.MouseUp += new MouseButtonEventHandler(this.Lbl1Week_MouseUp);
                break;

            case 14:
                ((UIElement)target).MouseEnter += new MouseEventHandler(this.Grid_MouseEnter);
                ((UIElement)target).MouseLeave += new MouseEventHandler(this.Grid_MouseLeave);
                break;

            case 15:
                this.mLblForever          = (TextBlock)target;
                this.mLblForever.MouseUp += new MouseButtonEventHandler(this.LblForever_MouseUp);
                break;

            case 16:
                this.mCloseBtn = (CustomPictureBox)target;
                this.mCloseBtn.MouseLeftButtonUp += new MouseButtonEventHandler(this.mCloseBtn_MouseLeftButtonUp);
                break;

            case 17:
                this.messageText = (TextBlock)target;
                break;

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