Exemple #1
0
 public static DialogResult ShowForm(Soko model)
 {
     using (LevelSelectionForm form = new LevelSelectionForm())
     {
         form.soko = model;
         return(form.ShowDialog());
     }
 }
        private void StartPractice()
        {
            timer1.Stop();
            this.Model.SetCurrentLevel(1);

            if (DialogResult.OK == LevelSelectionForm.ShowForm(this.Model))
            {
                this.Model.StartPractice();
                pointsLabel.Text = this.Model.TotalScore.ToString();
                StartLevel();
            }
        }