/// <summary> /// The simplified string[] representation of WriteTerminalMessages() without specifying a color. /// </summary> public static string WriteTerminalMessages(string[] messages) { var terminalMessagesList = new List <TerminalMessage>(); foreach (var message in messages) { terminalMessagesList.Add(TerminalMessage.Create(message)); } return(WriteTerminalMessages(terminalMessagesList)); }
public static string WriteLocation() { if (false == LocationWritten) { var envPathMessage = string.Format(TerminalMessages.GeneralFileAccessErrorMessageEnvironmentPath, IoHelper.GetEnvironmentPath()); var execPathMessage = string.Format(TerminalMessages.GeneralFileAccessErrorMessageExecutionPath, IoHelper.GetExecutionPath()); var messages = new List <TerminalMessage>(); messages.Add(TerminalMessage.CreateEmpty()); messages.Add(TerminalMessage.Create(TerminalMessages.GeneralFileAccessErrorMessageInitial, Color.Red)); messages.Add(TerminalMessage.Create(envPathMessage)); messages.Add(TerminalMessage.Create(execPathMessage)); LocationWritten = true; return(WriteTerminalMessages(messages)); } return(string.Empty); }