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

            case 2:
                this.GameGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.textBox = ((System.Windows.Controls.TextBox)(target));

            #line 13 "..\..\MainWindowOld.xaml"
                this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.button = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainWindow = ((Mastermind.MainWindow)(target));
     return;
     case 2:
     this.GameGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.textBox = ((System.Windows.Controls.TextBox)(target));
     
     #line 13 "..\..\MainWindowOld.xaml"
     this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.button = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.GameWindow = ((Mastermind.MainWindow)(target));
     return;
     case 2:
     this.GameGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.Guess1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 4:
     this.Guess2 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 5:
     this.Guess3 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 6:
     this.Guess4 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 7:
     this.Guess5 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 8:
     this.Guess6 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 9:
     this.Guess7 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 10:
     this.Guess8 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 11:
     this.Guess9 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 12:
     this.Guess10 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 13:
     this.TryGuess = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 14:
     this.GuessNumberLabel1 = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.GuessNumberLabel2 = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.GuessNumberLabel3 = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.GuessNumberLabel4 = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.GuessNumberLabel5 = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.GuessNumberLabel6 = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.GuessNumberLabel7 = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.GuessNumberLabel8 = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.GuessNumberLabel9 = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.GuessNumberLabel10 = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.Solution1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 25:
     this.Solution2 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 26:
     this.Solution3 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 27:
     this.Solution4 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 28:
     this.Solution5 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 29:
     this.Solution6 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 30:
     this.Solution7 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 31:
     this.Solution8 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 32:
     this.Solution9 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 33:
     this.Solution10 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 34:
     this.GuessButton = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameWindow = ((Mastermind.MainWindow)(target));
                return;

            case 2:
                this.GameGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Guess1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.Guess2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.Guess3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.Guess4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.Guess5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.Guess6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.Guess7 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.Guess8 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.Guess9 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.Guess10 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.TryGuess = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.GuessNumberLabel1 = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.GuessNumberLabel2 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.GuessNumberLabel3 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.GuessNumberLabel4 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.GuessNumberLabel5 = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.GuessNumberLabel6 = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.GuessNumberLabel7 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.GuessNumberLabel8 = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.GuessNumberLabel9 = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.GuessNumberLabel10 = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.Solution1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 25:
                this.Solution2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 26:
                this.Solution3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 27:
                this.Solution4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 28:
                this.Solution5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 29:
                this.Solution6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 30:
                this.Solution7 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 31:
                this.Solution8 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 32:
                this.Solution9 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 33:
                this.Solution10 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 34:
                this.GuessButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }