private async Task DoNext(string shortText, bool cancel) { if (exited)//DoNext may be called by the voice AND a click event { return; } this.exited = true; media.StopMedia(); await UiNotificationService.Next ( new InputFormRequest { Form = ScreenSettings.Settings, CommandButtonRequest = new CommandButtonRequest { NewSelection = shortText, Cancel = cancel }, ViewType = ViewType.InputForm } ); }
private async Task DoNext(string shortText, string symptomText, bool addToSymptoms, bool cancel) { if (exited)//DoNext may be called by the voice AND a click event { return; } this.exited = true; media.StopMedia(); await UiNotificationService.Next ( new SelectRequest { AddToSymptoms = addToSymptoms, MessageTemplateView = GetMessageTemplateView(shortText, ScreenSettings.Settings), CommandButtonRequest = new CommandButtonRequest { NewSelection = shortText, SymtomText = symptomText, Cancel = cancel }, ViewType = ViewType.Select } ); }
private async void Button_Click(object sender, RoutedEventArgs e) { await uiNitificationService.Next(new DefaultRequest { CommandButtonRequest = new CommandButtonRequest { }, ViewType = ViewType.Message }); }