private void btnExport_Click(object sender, RoutedEventArgs e)
        {
            ExportGames exportGamesWnd = new ExportGames();

            exportGamesWnd.Owner            = this;
            exportGamesWnd.GameList         = m_games.GetGames();
            exportGamesWnd.GameTemplateList = m_games.GetGameTemplates();
            exportGamesWnd.Show();
        }
Exemple #2
0
        private void btnView_Click(object sender, RoutedEventArgs e)
        {
            if (TStatusUpdate.tsuFileLoaded == m_games.LoadGamesSafe(tbSource.Text))
            {
                CCBGame[]         games     = m_games.GetGames();
                CCBGameTemplate[] templates = m_games.GetGameTemplates();

                foreach (CCBGame game in games)
                {
                    lbGames.Items.Add(game);
                }
                foreach (CCBGameTemplate template in templates)
                {
                    lbGames.Items.Add(template);
                }
            }
        }