예제 #1
0
        private void Button_Start(object sender, RoutedEventArgs e)
        {
            PlayWindow pl = new PlayWindow();

            pl.Show();
            this.Close();
        }
예제 #2
0
        private void Continue_Click(object sender, RoutedEventArgs e)
        {
            PlayWindow thirdWindow = new PlayWindow(PlayerName.Text);

            //scrWind.Show();
            thirdWindow.Show();
            this.Close();
        }
예제 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Tetris = ((CSCD371FinalProject.PlayWindow)(target));
                return;

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

            #line 19 "..\..\PlayWindow.xaml"
                this.pauseButt.Click += new System.Windows.RoutedEventHandler(this.Button_Pause);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\PlayWindow.xaml"
                this.playButt.Click += new System.Windows.RoutedEventHandler(this.Button_Play);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\PlayWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Menu);

            #line default
            #line hidden
                return;

            case 5:
                this.LabelName = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.nextUp = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.scorebox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.CanvasGrid = ((System.Windows.Controls.Canvas)(target));
                return;

            case 9:
                this.hiscorebox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 31 "..\..\PlayWindow.xaml"
                this.Save.Click += new System.Windows.RoutedEventHandler(this.Save_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.msgbox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }