예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model)
        {
            renderer.WriteMessage(model.Message);

            if (model.Result != null)
            {
                renderer.Write(model.Result.ToString(), ConsoleColor.Cyan);
            }
        }
예제 #4
0
        private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model)
        {
            renderer.WriteMessage(model.Message);

            if (model.Result != null)
            {
                renderer.Write(model.Result.ToString(), Prompt.ColorSchema.Answer);
            }
        }
예제 #5
0
 private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model)
 {
     renderer.WriteMessage(model.Message);
     renderer.Write(model.Options[model.SelectedIndex].Value, ConsoleColor.Cyan);
 }
예제 #6
0
 private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model)
 {
     renderer.WriteMessage(model.Message);
     renderer.Write(model.Result ? "Yes" : "No", Prompt.ColorSchema.Answer);
 }
예제 #7
0
 private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model)
 {
     renderer.WriteMessage(model.Message);
     renderer.Write(model.Options[model.SelectedIndex].Value, Prompt.ColorSchema.Answer);
 }
예제 #8
0
 private void FinishTemplate(ConsoleRenderer renderer, FinishTemplateModel model)
 {
     renderer.WriteMessage(model.Message);
     renderer.Write(model.Result ? "Yes" : "No", ConsoleColor.Cyan);
 }