public void UpdateTitle() { _runInformations = RunInformations.GetOrNewInstance(); _consoleSettings = ConsoleSettings.GetOrNewInstance(); _formatUtils = FormatUtils.GetOrNewInstance(); string title = null; switch (_runInformations.runStatus) { case RunInformations.RunStatus.Idle: { title = _formatUtils.FormatTitle(_consoleSettings.idleTitleFormat); break; } case RunInformations.RunStatus.Running: { title = _formatUtils.FormatTitle(_consoleSettings.runningTitleFormat); break; } case RunInformations.RunStatus.Finished: { title = _formatUtils.FormatTitle(_consoleSettings.finishedTitleFormat); break; } } Console.Title = title; }
public MilkyManager() { KeyboardListener = KeyboardListener.GetOrNewInstance(); ConsoleLoops = ConsoleLoops.GetOrNewInstance(); LoopsManager = LoopsManager.GetOrNewInstance(); StatisticsLoops = StatisticsLoops.GetOrNewInstance(); OutputSettings = OutputSettings.GetOrNewInstance(); ProgramInformations = ProgramInformations.GetOrNewInstance(); ProgramManager = ProgramManager.GetOrNewInstance(); RunInformations = RunInformations.GetOrNewInstance(); RunLists = RunLists.GetOrNewInstance(); RunManager = RunManager.GetOrNewInstance(); ConsoleSettings = ConsoleSettings.GetOrNewInstance(); RunSettings = RunSettings.GetOrNewInstance(); CustomStatistics = CustomStatistics.GetOrNewInstance(); RunStatistics = RunStatistics.GetOrNewInstance(); ConsoleUtils = ConsoleUtils.GetOrNewInstance(); DateTimeUtils = DateTimeUtils.GetOrNewInstance(); FileUtils = FileUtils.GetOrNewInstance(); FormatUtils = FormatUtils.GetOrNewInstance(); HashUtils = HashUtils.GetOrNewInstance(); ListUtils = ListUtils.GetOrNewInstance(); RequestUtils = RequestUtils.GetOrNewInstance(); StringUtils = StringUtils.GetOrNewInstance(); UserUtils = UserUtils.GetOrNewInstance(); }