Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.klondikeSolitaireView = ((SolitaireGames.KlondikeSolitaire.KlondikeSolitaireView)(target));
                return;

            case 2:
                this.dragAndDropHost = ((Apex.DragAndDrop.DragAndDropHost)(target));

            #line 32 "..\..\..\KlondikeSolitaire\KlondikeSolitaireView.xaml"
                this.dragAndDropHost.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.dragAndDropHost_MouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.dragStack = ((SolitaireGames.CardStackControl)(target));
                return;

            case 4:
                this.wasteStack = ((SolitaireGames.CardStackControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.spiderSolitaireView = ((SolitaireGames.SpiderSolitaire.SpiderSolitaireView)(target));
                return;

            case 2:
                this.dragAndDropHost = ((Apex.DragAndDrop.DragAndDropHost)(target));
                return;

            case 3:
                this.dragStack = ((SolitaireGames.CardStackControl)(target));
                return;
            }
            this._contentLoaded = true;
        }