Esempio n. 1
0
 public MessageReport(string title, Excel.Range excelRange, string description, Criticity criticity)
 {
     this.title = title;
     this.localisation = printRange(excelRange);
     this.description = description;
     this.criticity = criticity;
 }
Esempio n. 2
0
 public MessageReport(string title, string localisation, string description, Criticity criticity)
 {
     this.title = title;
     this.localisation = localisation;
     this.description = description;
     this.criticity = criticity;
 }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
 private static void Print(Criticity criticity, ConsoleColor consoleColor)
 {
     Console.ForegroundColor = consoleColor;
     Console.WriteLine("\t\t  Risk Rating: " + criticity);
     Console.ResetColor();
 }