Exemplo n.º 1
0
 /// <summary>
 /// Shows the dialog for creating a puzzle. May also show the new game screen.
 /// </summary>
 /// <param name="form">This form will be hidden.</param>
 public static void GeneratePuzzle(Form form)
 {
     Cursor.Current = Cursors.WaitCursor;
     DifficultyForm dform = new DifficultyForm();
     Cursor.Current = Cursors.Default;
     dform.ShowDialog();
     if (dform.HasResult)
     {
         form.Hide();
         GameForm gform = new GameForm(dform.Result, true);
         gform.ShowDialog();
         form.Close();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Shows the dialog for creating a puzzle. May also show the new game screen.
        /// </summary>
        /// <param name="form">This form will be hidden.</param>
        public static void GeneratePuzzle(Form form)
        {
            Cursor.Current = Cursors.WaitCursor;
            DifficultyForm dform = new DifficultyForm();

            Cursor.Current = Cursors.Default;
            dform.ShowDialog();
            if (dform.HasResult)
            {
                form.Hide();
                GameForm gform = new GameForm(dform.Result, true);
                gform.ShowDialog();
                form.Close();
            }
        }