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"); } }
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); } }
public void Save(string GetResultsText, bool CutIsEnabled, bool autosave = false, string text = "Pairings_Round") { ActiveIO.Save(ActiveTournament, autosave, GetResultsText, CutIsEnabled, text + ActiveTournament.Rounds.Count); }