private void BTN_OPPONENTS_Click(object sender, RoutedEventArgs e)
        {
            OpponentsDlg dlg = new OpponentsDlg(engine.TeamLineupData, engine.CompleteListOfTeams);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TeamInformation.saveDatabase(engine.TeamLineupData);
            }
        }
        private void Window_Initialized(object sender, EventArgs e)
        {
            TeamUtils.registerTeamAbvMapping(new Config().getTeamAbrvMapping());

            dp    = DependencyProperty.Register("LineupInfo", typeof(object), typeof(LineupDataObj), new UIPropertyMetadata());
            dpPos = DependencyProperty.Register("Positions", typeof(object), typeof(PositionObj), new UIPropertyMetadata());

            engine.initialize(Config.getConfigurationFilePath("rosterReport.PRT"));

            CB_LIST_OF_TEAMS.Items.Add("SELECT ONE");
            foreach (Team team in engine.CompleteListOfTeams)
            {
                CB_LIST_OF_TEAMS.Items.Add(team);
            }
            CB_LIST_OF_TEAMS.SelectedIndex = 0;


            if (engine.TeamLineupData.hasEmptyData())
            {
                MessageBox.Show("It appears this is the first time you have run the program. Team division assignments are required in order to estimate the number of games played vs each team.  On the next screen please assign each team a division.",
                                "Team division assignments are required", MessageBoxButton.OK, MessageBoxImage.Information);
                OpponentsDlg dlg = new OpponentsDlg(engine.TeamLineupData, engine.CompleteListOfTeams);
                if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
                {
                    this.Close();
                }
                engine.saveDatabase();
            }

            applyDivisionToTeams();

            GRID.Background    = new SolidColorBrush(Colors.LightSteelBlue);
            GRID.ShowGridLines = true;

            dialogInitialized = true;

            batterInfo   = new TeamBatterInfo(GRID_INFO, GRID);
            balanceUsage = new BalanceUsageStats(GRID_USAGE_STATS);
        }