//Initalize Connector() will check which setting are avilable establish retrieve info and call appropriate display screen.
 public Connector()
 {
     configs = Helper.GetConfig();
     if (configs.DwarfPoolConfig.Active)
     {
         UserInformation userInformation = GetDwarfUserInformation(configs.DwarfPoolConfig);
         ScreenBuilder.DisplayDwarfUserStatsAsync(userInformation.DwarfUserInformation);
     }
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     while (true)
     {
         ScreenBuilder.GetWelcomeMessage();
         Console.WriteLine("Refresh every " + SecondsToRefresh + " seconds.\n");
         ScreenBuilder.DisplayPerformanceMonitoringStats();
         Helper.StartRefreshTimer(SecondsToRefresh);
         Console.Clear();
     }
 }