protected void MenuItemTSettings_Click(object sender, EventArgs e) { NewTournament2Dialog ntd = new NewTournament2Dialog(activeTournament); ntd.Run(); if (ntd.Changes) { activeTournament.Name = ntd.GetName(); activeTournament.Cut = ntd.GetCut(); activeTournament.MaxSquadPoints = ntd.GetMaxSquadSize(); } ntd.Destroy(); }
protected void NewTournament_Click(object sender, EventArgs e) { if (activeTournament != null) { if (!io.ShowMessageWithOKCancel("Das aktuelle Turnier wird überschrieben.")) { return; } } NewTournament2Dialog ntd = new NewTournament2Dialog(); ntd.Run(); if (ntd.NewTournament) { activeTournament = new Tournament2(ntd.GetName(), ntd.GetMaxSquadSize(), ntd.GetCut()); SetGUIState(true); selectedPlayer = -1; SetIO(); } ntd.Destroy(); }