private void Table_GameOver() { Container.Children.Clear(); lock (Table._Items) { var listCopy = Table._Items.ToList(); foreach (var item in listCopy) { item.Value.Destroy(); } } Table.ClearItems(); GameOverDialog gameoverDialog = new GameOverDialog(this); gameoverDialog.ShowDialog(); }
private void Table_LevelWon() { GameOverDialog gameoverDialog = new GameOverDialog(this, true); gameoverDialog.ShowDialog(); }