Example #1
0
        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();
        }
Example #2
0
        private void Table_LevelWon()
        {
            GameOverDialog gameoverDialog = new GameOverDialog(this, true);

            gameoverDialog.ShowDialog();
        }