コード例 #1
0
 public void OnLoad()
 {
     try
     {
         history = historySerialiser.Load();
     }
     catch (IOException)
     {
         // there is no history file yet - start with a blank history
         PrintLine("No history file was found - starting with a blank one");
         history = new LogHistory();
     }
     try
     {
         loggerConfiguration = configurationSerialiser.Load();
     }
     catch (IOException)
     {
         // there is no configuration file yet
         PrintLine("Unable to find configuration file " + configurationPath + " - opening the configuration dialogue");
         ShowConfigurationDialogue();
     }
     StartLogging();
 }
コード例 #2
0
ファイル: Logger.cs プロジェクト: epicvrvs/LoLLogger
 public void OnLoad()
 {
     try
     {
         history = historySerialiser.Load();
     }
     catch (IOException)
     {
         // there is no history file yet - start with a blank history
         PrintLine("No history file was found - starting with a blank one");
         history = new LogHistory();
     }
     try
     {
         loggerConfiguration = configurationSerialiser.Load();
     }
     catch (IOException)
     {
         // there is no configuration file yet
         PrintLine("Unable to find configuration file " + configurationPath + " - opening the configuration dialogue");
         ShowConfigurationDialogue();
     }
     StartLogging();
 }