protected void ButtonChangePairing_Click(object sender, EventArgs e) { SetPairingDialog spd = new SetPairingDialog(activeTournament.Participants, activeTournament.Pairings); spd.Run(); if (spd.OK) { activeTournament.Pairings = spd.PremadePairing; RefreshDataGridPairings(activeTournament.Pairings); } spd.Destroy(); }
protected void ButtonSetPairing_Click(object sender, EventArgs e) { Tournament2 t = activeTournament; SetPairingDialog spd = new SetPairingDialog(t.Participants, t.PrePaired); spd.Run(); if (spd.OK) { t.PrePaired = spd.PremadePairing; } spd.Destroy(); }