Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }