Beispiel #1
0
        private void DrawSingleGrid()
        {
            if (!_data.isTeamInput)
            {
                ShowWarning(Messages.NotAInputTeams);
                return;
            }

            GridDrawer gridDrawer = new GridDrawer(_data._singleTournamentGrid.Teams, 0);

            gridDrawer.DrawGrid(_data._singleTournamentGrid, _data._gridType);
            Console.ReadKey();
        }
Beispiel #2
0
        private void DrawDoubleGrid()
        {
            if (!_data.isTeamInput)
            {
                ShowWarning(Messages.NotAInputTeams);
                return;
            }

            GridDrawer gridDrawer = new GridDrawer(_data._doubleTournamentGrid.WinnersTour.Teams, 0);

            gridDrawer.DrawGrid(_data._doubleTournamentGrid.WinnersTour, _data._gridType);

            if (_data._doubleTournamentGrid.LosersTour != null)
            {
                GridDrawer gridDrawer1 = new GridDrawer(_data._doubleTournamentGrid.LosersTour.Teams, gridDrawer._maxCursorTop + 1);
                gridDrawer1.DrawGrid(_data._doubleTournamentGrid.LosersTour, _data._gridType);
            }
            Console.ReadKey();
        }