Patcher.UI.Windows.MainWindow.SelectChoice C# (CSharp) Method

SelectChoice() private method

private SelectChoice ( Choice choice ) : void
choice Choice
return void
        private void SelectChoice(Choice choice)
        {
            // Ignore if not one of the offered options
            if (offeredChoices.Contains(choice))
            {
                PromptControl.Visibility = Visibility.Collapsed;
                selectedChoice = choice;
                offeredChoices = null;

                waitForChoice.Set();
            }
        }