Пример #1
0
        private void btLetPlay_Click(object sender, EventArgs e)
        {
            NameUser = tbNameType.Text;
            FormPlus formPlus = new FormPlus();

            this.Hide();
            formPlus.Show();
        }
        private void btBack_Click(object sender, EventArgs e)
        {
            DialogResult result = new DialogResult();

            result = MessageBox.Show("Are You Sure?", "Go Back", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
            while (true)
            {
                if (result == DialogResult.OK)
                {
                    FormPlus formPlus = new FormPlus();

                    formPlus.Show();
                    this.Hide();
                    break;
                }
                else
                {
                    break;
                }
            }
        }