예제 #1
0
        private void pictureBox8_Click(object sender, EventArgs e)
        {
            Mode5Game mode = new Mode5Game(this, pictureBox8.Image);

            mode.Show();
            Program.ac.MainForm = mode;
            this.Close();
        }
예제 #2
0
        public Pause(string s, Mode5Game m)
        {
            InitializeComponent();
            mode5 = m;
            PrivateFontCollection privateFont = new PrivateFontCollection();

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

            currentScoreLabel.Text = s;
        }
예제 #3
0
        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);
                Mode5Game mode  = new Mode5Game(this, image);
                mode.Show();
                Program.ac.MainForm = mode;
                this.Close();
            }
        }