private void ButtonStartDraftManual_OnClick(object sender, RoutedEventArgs e)
        {
            ivDraft.Start(true);
            var pairingWindow = new ManualParingWindow(ivDraft.Rounds.Last());

            var result = pairingWindow.ShowDialog();

            if (result.HasValue && result.Value)
            {
                ivDraft.ConfirmManualPairing();
                buttonStartDraftManual.IsEnabled = false;
                buttonStartDraft.IsEnabled = false;
            }
            else
            {
                ivDraft.CancelManualPairing();
            }
        }
Beispiel #2
0
        private void ButtonStartNextRoundManual_OnClick(object sender, RoutedEventArgs e)
        {
            StartNextRound(true);
            var pairingWindow = new ManualParingWindow(ivDraft.Rounds.Last());

            var result = pairingWindow.ShowDialog();

            if (result.HasValue && result.Value)
            {
                ivDraft.ConfirmManualPairing();
            }
            else
            {
                buttonStartNextRound.IsEnabled       = true;
                buttonStartNextRoundManual.IsEnabled = true;
                ivDraft.CancelManualPairing();
            }
        }