示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((TypingGame.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((TypingGame.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.ImgBG = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.GridMainScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.TopScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.CanvTopScreen = ((System.Windows.Controls.Canvas)(target));
                return;

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

            #line 124 "..\..\MainWindow.xaml"
                this.BtnPlay.Click += new System.Windows.RoutedEventHandler(this.BtnPlay_Click);

            #line default
            #line hidden

            #line 124 "..\..\MainWindow.xaml"
                this.BtnPlay.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Btn_MouseEnter);

            #line default
            #line hidden
                return;

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

            #line 125 "..\..\MainWindow.xaml"
                this.BtnSet.Click += new System.Windows.RoutedEventHandler(this.BtnSet_Click);

            #line default
            #line hidden

            #line 125 "..\..\MainWindow.xaml"
                this.BtnSet.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Btn_MouseEnter);

            #line default
            #line hidden
                return;

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

            #line 126 "..\..\MainWindow.xaml"
                this.BtnSort.Click += new System.Windows.RoutedEventHandler(this.BtnSort_Click);

            #line default
            #line hidden

            #line 126 "..\..\MainWindow.xaml"
                this.BtnSort.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Btn_MouseEnter);

            #line default
            #line hidden
                return;

            case 10:
                this.CanvSetAndSort = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.CanvSet = ((System.Windows.Controls.Canvas)(target));
                return;

            case 12:
                this.TxtName = ((System.Windows.Controls.TextBox)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.TxtName.LostFocus += new System.Windows.RoutedEventHandler(this.TxtName_LostFocus);

            #line default
            #line hidden

            #line 141 "..\..\MainWindow.xaml"
                this.TxtName.GotFocus += new System.Windows.RoutedEventHandler(this.TxtName_GotFocus);

            #line default
            #line hidden
                return;

            case 13:
                this.LblLevelTop = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.CmbLevelTopCav = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 15:
                this.CmbIOne2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 16:
                this.CmbITwo2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 17:
                this.CmbIThree2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 18:
                this.CmbIFour2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 19:
                this.CmbIFive2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 20:
                this.CmbISix2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 21:
                this.CmbISeven2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 22:
                this.CmbIEight2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 23:
                this.CmbINine2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 24:
                this.CmbITen2 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 25:
                this.CkbSilent = ((System.Windows.Controls.CheckBox)(target));

            #line 155 "..\..\MainWindow.xaml"
                this.CkbSilent.Checked += new System.Windows.RoutedEventHandler(this.CkbSilent_Checked);

            #line default
            #line hidden

            #line 155 "..\..\MainWindow.xaml"
                this.CkbSilent.Unchecked += new System.Windows.RoutedEventHandler(this.CkbSilent_Unchecked);

            #line default
            #line hidden
                return;

            case 26:
                this.CanvSort = ((System.Windows.Controls.Canvas)(target));
                return;

            case 27:
                this.LvScore = ((System.Windows.Controls.ListView)(target));
                return;

            case 28:
                this.No = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 29:
                this.Level = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 30:
                this.UserName = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 31:
                this.Score = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 32:
                this.TatolScore = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 33:
                this.PracticeTime = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 34:
                this.LblSort = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.GridElementAll = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:
                this.BtnStart = ((System.Windows.Controls.Button)(target));

            #line 178 "..\..\MainWindow.xaml"
                this.BtnStart.Click += new System.Windows.RoutedEventHandler(this.BtnStart_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.BtnReset = ((System.Windows.Controls.Button)(target));

            #line 179 "..\..\MainWindow.xaml"
                this.BtnReset.Click += new System.Windows.RoutedEventHandler(this.BtnReset_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.CanvasMain = ((System.Windows.Controls.Canvas)(target));
                return;

            case 39:
                this.MsgShow = ((TypingGame.MyMessage)(target));
                return;

            case 40:
                this.BtnBack = ((System.Windows.Controls.Button)(target));

            #line 183 "..\..\MainWindow.xaml"
                this.BtnBack.Click += new System.Windows.RoutedEventHandler(this.BtnBack_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.CanvCoin = ((System.Windows.Controls.Canvas)(target));
                return;

            case 42:
                this.LblCoin = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.TxtScore = ((System.Windows.Controls.TextBox)(target));
                return;

            case 44:
                this.LblDivid = ((System.Windows.Controls.Label)(target));
                return;

            case 45:
                this.LblCount = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.SldGeneral = ((System.Windows.Controls.Slider)(target));
                return;

            case 47:
                this.LblLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.CmbLevel = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 49:
                this.CmbIOne = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 50:
                this.CmbITwo = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 51:
                this.CmbIThree = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 52:
                this.CmbIFour = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 53:
                this.CmbIFive = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 54:
                this.CmbISix = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 55:
                this.CmbISeven = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 56:
                this.CmbIEight = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 57:
                this.CmbINine = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 58:
                this.CmbITen = ((System.Windows.Controls.ComboBoxItem)(target));
                return;
            }
            this._contentLoaded = true;
        }