/// <summary>
        /// Move on to the ContestView
        /// </summary>
        private void FinalizeContest()
        {
            ContestView      contestView      = new ContestView();
            ContestPresenter contestPresenter = new ContestPresenter(contestView, window, CurrentContest);

            window.ChangePanel(contestView, View);
        }
Exemplo n.º 2
0
        public ContestPresenter(ContestView view, ProjectMainWindow window, Contest contest)
        {
            this.View               = view;
            this.window             = window;
            CurrentContest          = contest;
            View.EventAddJump      += AddDive;
            View.EventPauseContest += PauseContest;
            View.EventCloseContest += CloseContest;

            View.EventSubContestSelection += UpdateContestantListView;
            View.EventContestantSelection += UpdateDivesListView;
            View.EventDiveSelection       += EnableModifyDive;
            View.EventModifyDive          += ModifyDive;
            View.EventRemoveDive          += RemoveDive;
            View.EventCancelDiveEdit      += CancelModifyDive;
            View.EventRequestPoints       += RequestPointsFromJudges;
            View.EventCollectPoints       += CollectPoints;
            View.EventManualJudging       += OpenManualJudging;

            window.FormClosing += ParentForm_FormClosing;

            Initialize();
        }