Exemplo n.º 1
0
        private void playButton_Click_1(object sender, EventArgs e)
        {
            //go to character select screen
            Form f = this.FindForm();
            f.Controls.Remove(this);

            CharacterSelection cs = new CharacterSelection();


            // set the character select to display centre screen
            cs.Location = new Point((f.Width - cs.Width) / 2, (f.Height - cs.Height) / 2);

            f.Controls.Add(cs);
        }
Exemplo n.º 2
0
        private void playButton_Click_1(object sender, EventArgs e)
        {
            //go to character select screen
            Form f = this.FindForm();

            f.Controls.Remove(this);

            CharacterSelection cs = new CharacterSelection();


            // set the character select to display centre screen
            cs.Location = new Point((f.Width - cs.Width) / 2, (f.Height - cs.Height) / 2);

            f.Controls.Add(cs);
        }