Esempio n. 1
0
        public static void UpdateStatus(StatusEventArgs status)
        {
            Console.SetCursorPosition(0, 0);
            Display.AsRowsChart(status);

            Console.WriteLine($" * ALGORITHM: {status.AlgorithmName}");

            Console.ForegroundColor = status.CurrentProcess switch
            {
                ManagerProcessStatus.Operating => ConsoleColor.DarkYellow,
                ManagerProcessStatus.Exchanging => ConsoleColor.Yellow,
                ManagerProcessStatus.Exchanged => ConsoleColor.Yellow,
                _ => ConsoleColor.DarkGray
            };
            ConsoleExtensions.ClearCurrentLine();
            Console.WriteLine($" * PROCESS: {status.CurrentProcess}");
            Console.ResetColor();

            Console.WriteLine($" * OPERATIONS: {status.Operations}");
        }