Esempio n. 1
0
        private void form1StartButton_Click(object sender, EventArgs e)
        {
            if (form1PlayerName.Text == "")
            {

                form1Warning.Visible = true;
                form1StartButton.Text = "";

            }

            else
            {

                if (form1PlayerName.Text == "Type Here")
                {

                    form1Warning.Visible = true;
                    form1StartButton.Text = "";
                }

                else
                {
                    theGameGUI = new WindowsFormsApp1.GameGUI(form1PlayerName.Text);
                    theGameGUI.Show();
                    
                    this.Hide();

                }



                




            }


            


        }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     form1Warning.Visible = false;
     theGameGUI = new GameGUI("");
 }