Exemplo n.º 1
0
 public void Boot(string sid, string serverLobbyAddress, string serverFrontierAddress)
 {
     try
     {
         BootClient.StartClient(sid, serverLobbyAddress, serverFrontierAddress);
         Environment.Exit(0);
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show($"An error has occured. Please check your game path and server addresses.\n\nMore info:\n{ex}",
                                              "Launch failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
     }
 }
Exemplo n.º 2
0
 public void Boot(string sid, string serverLobbyAddress, string serverFrontierAddress)
 {
     try
     {
         BootClient.StartClient(sid, serverLobbyAddress, serverFrontierAddress);
         if (Properties.Settings.Default.CloseOnLaunch)
         {
             Environment.Exit(0);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show($"An error has occured. Please check your game path and server addresses.\n\nMore info:\n{ex}",
                         "Launch failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }