コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main_Window = ((_2048.MainWindow)(target));

            #line 6 "..\..\MainWindow.xaml"
                this.Main_Window.KeyDown += new System.Windows.Input.KeyEventHandler(this.Grid_for_buttons_KeyDown);

            #line default
            #line hidden
                return;

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

            case 3:
                this.Grid_for_text = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.brd = ((System.Windows.Controls.Border)(target));
                return;

            case 5:
                this.Score_txt_block = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.brd_high_score = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.High_score_txt_block = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.Grid_for_buttons = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((_2048.MainWindow)(target));

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

            #line default
            #line hidden
                return;

            case 2:
                this.container = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }