private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); string joined = string.Join(", ", model.SelectedOptions.Select(res => res.Value)); renderer.Write(joined, ConsoleColor.Cyan); }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); var joined = string.Join(", ", model.SelectedOptions.Select(res => res.Value)); renderer.Write(joined, Prompt.ColorSchema.Answer); }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); if (model.Result != null) { renderer.Write(model.Result.ToString(), ConsoleColor.Cyan); } }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); if (model.Result != null) { renderer.Write(model.Result.ToString(), Prompt.ColorSchema.Answer); } }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); renderer.Write(model.Options[model.SelectedIndex].Value, ConsoleColor.Cyan); }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); renderer.Write(model.Result ? "Yes" : "No", Prompt.ColorSchema.Answer); }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); renderer.Write(model.Options[model.SelectedIndex].Value, Prompt.ColorSchema.Answer); }
private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model) { renderer.WriteMessage(model.Message); renderer.Write(model.Result ? "Yes" : "No", ConsoleColor.Cyan); }