Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DifficultySelector difficultyWindow = new DifficultySelector(true, "");
            ModeSelector       modeWindow       = (ModeSelector)ActiveForm;

            modeWindow.Hide();
            difficultyWindow.ShowDialog();
            modeWindow.Show();
        }
Ejemplo n.º 2
0
        private void SetPresetPicture(string pic)
        {
            DifficultySelector difficultyWindow = new DifficultySelector(false, pic);
            ModeSelector       modeWindow       = (ModeSelector)ActiveForm;

            modeWindow.Hide();
            difficultyWindow.ShowDialog();
            modeWindow.Show();
            HideImages(true);
        }
Ejemplo n.º 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     openFileDialog1.Filter = "Image Files (*.bmp, *.jpg, *.gif, *.png, *.tiff)|*.bmp;*.jpg;*.gif;*.png;*.tiff";
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         DifficultySelector difficultyWindow = new DifficultySelector(false, openFileDialog1.FileName);
         ModeSelector       modeWindow       = (ModeSelector)ActiveForm;
         modeWindow.Hide();
         difficultyWindow.ShowDialog();
         modeWindow.Show();
     }
 }