private void pictureBox8_Click(object sender, EventArgs e)
        {
            Mode4Game mode = new Mode4Game(this, pictureBox8.Image);

            mode.Show();
            Program.ac.MainForm = mode;
            this.Close();
        }
Esempio n. 2
0
        public Pause(string s, Mode4Game m)
        {
            InitializeComponent();
            mode4 = m;
            PrivateFontCollection privateFont = new PrivateFontCollection();

            privateFont.AddFontFile("./Resources/BMHANNA_11yrs_ttf.ttf");
            Font font = new Font(privateFont.Families[0], 24F);

            currentScoreLabel.Text = s;
        }
        private void controlButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFile = new OpenFileDialog();

            openFile.DefaultExt = "jpg";
            openFile.Filter     = "Graphics interchange Format (*.jpg)|*.jpg|All files(*.*)|(*.*)";
            openFile.ShowDialog();

            if (openFile.FileName.Length > 0)
            {
                Image     image = Image.FromFile(openFile.FileName);
                Mode4Game mode  = new Mode4Game(this, image);
                mode.Show();
                Program.ac.MainForm = mode;
                this.Close();
            }
        }