Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AlSudoku = ((AlSudoku.MainWindow)(target));
                return;

            case 2:
                this.btnRules = ((System.Windows.Controls.Button)(target));
                return;

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

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

            case 5:
                this.btnOne = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.btnTwo = ((System.Windows.Controls.Button)(target));
                return;

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

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

            case 9:
                this.btnFive = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AlSudoku = ((AlSudoku.MainWindow)(target));
                return;

            case 2:
                this.btnRules = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.btnRules.Click += new System.Windows.RoutedEventHandler(this.btnRules_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\MainWindow.xaml"
                this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\MainWindow.xaml"
                this.btnReset.Click += new System.Windows.RoutedEventHandler(this.btnReset_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.spChoice = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

            #line 24 "..\..\MainWindow.xaml"
                this.btn1.Click += new System.Windows.RoutedEventHandler(this.btn1_Click);

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\MainWindow.xaml"
                this.btn2.Click += new System.Windows.RoutedEventHandler(this.btn2_Click);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\MainWindow.xaml"
                this.btn3.Click += new System.Windows.RoutedEventHandler(this.btn3_Click);

            #line default
            #line hidden
                return;

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

            #line 30 "..\..\MainWindow.xaml"
                this.btn4.Click += new System.Windows.RoutedEventHandler(this.btn4_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btn5 = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.btn5.Click += new System.Windows.RoutedEventHandler(this.btn5_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.spRules = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 13:
                this.tbRules = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.spField = ((System.Windows.Controls.StackPanel)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.spField.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.spField_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 15:
                this.cnsField = ((System.Windows.Controls.Canvas)(target));
                return;

            case 16:
                this.spDigits = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 17:
                this.borderCanvas = ((System.Windows.Controls.Border)(target));
                return;

            case 18:
                this.cnsDigits = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }