Esempio n. 1
0
        public void EditPairings(IPairingDialog ipd, string buttonGetResultsText, bool CutIsEnabled)
        {
            ipd.SetParticipants(ActiveTournament.Participants);
            ipd.SetPairings(ActiveTournament.Pairings);
            ipd.ShowDialog();
            if (ipd.GetDialogResult())
            {
                ActiveTournament.Pairings = ipd.GetPairings();

                ActiveIO.Save(ActiveTournament, true, buttonGetResultsText, CutIsEnabled, "ChangePairings");
            }
        }
Esempio n. 2
0
 public bool StartTournament(string buttonGetResultsText, bool CutIsEnabled)
 {
     if (ActiveTournament.Participants.Count != 0)
     {
         firststart = true;
         Started    = true;
         ActiveIO.Save(ActiveTournament, true, buttonGetResultsText, CutIsEnabled, "TournamentStart");
         return(true);
     }
     else
     {
         ActiveIO.ShowMessage("Tournament can't be started without player");
         return(false);
     }
 }
Esempio n. 3
0
 public void Save(string GetResultsText, bool CutIsEnabled, bool autosave = false, string text = "Pairings_Round")
 {
     ActiveIO.Save(ActiveTournament, autosave, GetResultsText, CutIsEnabled, text + ActiveTournament.Rounds.Count);
 }