public MessageReport(string title, Excel.Range excelRange, string description, Criticity criticity) { this.title = title; this.localisation = printRange(excelRange); this.description = description; this.criticity = criticity; }
public MessageReport(string title, string localisation, string description, Criticity criticity) { this.title = title; this.localisation = localisation; this.description = description; this.criticity = criticity; }
private static void PrintRisk(Criticity criticity) { switch (criticity) { case Criticity.Low: Print(Criticity.Low, ConsoleColor.Yellow); break; case Criticity.High: Print(Criticity.High, ConsoleColor.Red); break; case Criticity.Unknown: default: Print(Criticity.Unknown, ConsoleColor.DarkGray); break; } }
private static void Print(Criticity criticity, ConsoleColor consoleColor) { Console.ForegroundColor = consoleColor; Console.WriteLine("\t\t Risk Rating: " + criticity); Console.ResetColor(); }