public void OpenLevel(int level_nr) { if (level_nr > last_level_nr) { return; } this.level_nr = level_nr; if (!game.Init(level_nr, out width, out height)) { this.DialogResult = System.Windows.Forms.DialogResult.OK; return; } //width = 10; //height = 8; InitPictures(); game.ShowLevel(); }
public void OpenLevel(int level_nr) { if (level_nr > last_level_nr) { return; } this.level_nr = level_nr; if (!game.Init(level_nr, out width, out height)) { MessageBox.Show("Поздравляю!!!!!"); this.DialogResult = System.Windows.Forms.DialogResult.OK; return; } InitPictures(); game.ShowLevel(); }