Пример #1
0
 public HighScore(string name, int score, Difficulty.Variants difficult, int level)
 {
     this.name = name;
     this.score = score;
     this.difficult = difficult;
     this.level = level;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Difficulty_window = ((Tetris.Difficulty)(target));

            #line 8 "..\..\SetDifficulty.xaml"
                this.Difficulty_window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Start_Window_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\SetDifficulty.xaml"
                this.EasyButton.Click += new System.Windows.RoutedEventHandler(this.EasyButton_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\SetDifficulty.xaml"
                this.BackButton.Click += new System.Windows.RoutedEventHandler(this.BackButton_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\SetDifficulty.xaml"
                this.HardButton.Click += new System.Windows.RoutedEventHandler(this.HardButton_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\SetDifficulty.xaml"
                this.MediumButton.Click += new System.Windows.RoutedEventHandler(this.MediumButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }