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

            case 2:
                this.board_main = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 4:
                this.row_1 = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\board.xaml"
                this.row_1.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 5:
                this.dice_1 = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.lbl_pos1 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.label_3 = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.row_3 = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\board.xaml"
                this.row_3.Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 9:
                this.dice_3 = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.lbl_pos3 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.label_2 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.row_2 = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\board.xaml"
                this.row_2.Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 13:
                this.dice_2 = ((System.Windows.Controls.Image)(target));
                return;

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

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

            case 16:
                this.row_4 = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\board.xaml"
                this.row_4.Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 17:
                this.dice_4 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 19:
                this.options = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\board.xaml"
                this.options.Click += new System.Windows.RoutedEventHandler(this.options_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     bw = new board();
     bw.Show();
 }