Пример #1
0
        /**** Annie Edit ***/
        private async Task <DialogTurnResult> IntroStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
        {
            var newStressLevelList = EnumHelpers.GetDescriptions <StressResponses>().ToList();

            return(await stepContext.PromptAsync(nameof(ChoicePrompt), new PromptOptions()
            {
                Prompt = stepContext.Options as Activity ?? _templateEngine.GenerateActivityForLocale("FirstPromptMessage"),
                Choices = ChoiceFactory.ToChoices(newStressLevelList),
                RetryPrompt = MessageFactory.Text("Your Stress Level")
            }, cancellationToken));
        }
            public DxvaHdScalerConfigDialog()
            {
                InitializeComponent();

                var descs = EnumHelpers.GetDescriptions <DxvaHdQuality>();

                foreach (var desc in descs)
                {
                    comboBoxQuality.Items.Add(desc);
                }
            }
            public ResizerConfigDialog()
            {
                InitializeComponent();

                var descs = EnumHelpers.GetDescriptions <ResizerOption>();

                foreach (var desc in descs)
                {
                    listBox.Items.Add(desc);
                }

                listBox.SelectedIndex = 0;
            }
            public ImageProcessorConfigDialog()
            {
                InitializeComponent();

                var descs = EnumHelpers.GetDescriptions <ImageProcessorUsage>();

                foreach (var desc in descs)
                {
                    comboBoxUsage.Items.Add(desc);
                }

                comboBoxUsage.SelectedIndex = 0;
            }
Пример #5
0
            public ChromaScalerConfigDialog()
            {
                InitializeComponent();

                var descs = EnumHelpers.GetDescriptions <Presets>().Where(d => d != "Custom");

                foreach (var desc in descs)
                {
                    PresetBox.Items.Add(desc);
                }

                PresetBox.SelectedIndex = (int)Presets.Custom;
            }