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

            #line 5 "..\..\..\MainWindow.xaml"
                this.window.KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden
                return;

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

            case 3:
                this.button1 = ((System.Windows.Controls.Button)(target));
                return;

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

            #line 22 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.chessBoard = ((System.Windows.Controls.Primitives.UniformGrid)(target));
                return;

            case 6:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));

            #line 36 "..\..\..\MainWindow.xaml"
                this.checkBox1.Checked += new System.Windows.RoutedEventHandler(this.checkBox1_Checked);

            #line default
            #line hidden

            #line 36 "..\..\..\MainWindow.xaml"
                this.checkBox1.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox1_Unchecked);

            #line default
            #line hidden
                return;

            case 9:
                this.button4 = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.button5 = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\..\MainWindow.xaml"
                this.button5.Click += new System.Windows.RoutedEventHandler(this.button5_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.radioButton1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.radioButton2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.button6 = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\..\MainWindow.xaml"
                this.button6.Click += new System.Windows.RoutedEventHandler(this.button6_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.textBox3 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 18:
                this.button7 = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\..\MainWindow.xaml"
                this.button7.Click += new System.Windows.RoutedEventHandler(this.button7_Click);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\..\MainWindow.xaml"
                this.button8.Click += new System.Windows.RoutedEventHandler(this.button8_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.textBox4 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((CS541_Final_Project.MainWindow)(target));
     
     #line 5 "..\..\..\MainWindow.xaml"
     this.window.KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.button1 = ((System.Windows.Controls.Button)(target));
     return;
     case 4:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 94 "..\..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.chessBoard = ((System.Windows.Controls.Primitives.UniformGrid)(target));
     return;
     case 6:
     this.grid1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 107 "..\..\..\MainWindow.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 108 "..\..\..\MainWindow.xaml"
     this.checkBox1.Checked += new System.Windows.RoutedEventHandler(this.checkBox1_Checked);
     
     #line default
     #line hidden
     
     #line 108 "..\..\..\MainWindow.xaml"
     this.checkBox1.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox1_Unchecked);
     
     #line default
     #line hidden
     return;
     case 9:
     this.button4 = ((System.Windows.Controls.Button)(target));
     
     #line 109 "..\..\..\MainWindow.xaml"
     this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.button5 = ((System.Windows.Controls.Button)(target));
     
     #line 110 "..\..\..\MainWindow.xaml"
     this.button5.Click += new System.Windows.RoutedEventHandler(this.button5_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.radioButton1 = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 12:
     this.radioButton2 = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 13:
     this.textBox2 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.button6 = ((System.Windows.Controls.Button)(target));
     
     #line 119 "..\..\..\MainWindow.xaml"
     this.button6.Click += new System.Windows.RoutedEventHandler(this.button6_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.textBox3 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 17:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.button7 = ((System.Windows.Controls.Button)(target));
     
     #line 125 "..\..\..\MainWindow.xaml"
     this.button7.Click += new System.Windows.RoutedEventHandler(this.button7_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.button8 = ((System.Windows.Controls.Button)(target));
     
     #line 126 "..\..\..\MainWindow.xaml"
     this.button8.Click += new System.Windows.RoutedEventHandler(this.button8_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.textBox4 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.textBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 24:
     this.BlackNumberLabel = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.WhiteNumberLabel = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 26:
     this.BlackNumberLabel_Copy = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.WhiteNumberLabel_Copy = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 28:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }