Пример #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);
 }