Esempio n. 1
0
 bool TryRunWurmAssistant([NotNull] IInstallLocation installLocation, string targetBuildNumber)
 {
     if (installLocation == null)
     {
         throw new ArgumentNullException("installLocation");
     }
     try
     {
         installLocation.RunWurmAssistant(targetBuildNumber);
         return(true);
     }
     catch (Exception exception)
     {
         debug.Write("Error at TryRunWurmAssistant: " + exception.ToString());
         gui.ShowGui();
         gui.AddUserMessage("Error while attempting to start Wurm Assistant: " + exception.ToStringMessagesOnly());
         return(false);
     }
 }
 bool TryRunWurmAssistant(IInstallLocation installLocation)
 {
     try
     {
         installLocation.RunWurmAssistant();
         return true;
     }
     catch (Exception exception)
     {
         debug.Write("Error at TryRunWurmAssistant: " + exception.ToString());
         gui.ShowGui();
         gui.AddUserMessage("Error while attempting to start Wurm Assistant: " + exception.ToString());
         return false;
     }
 }