private void serverPower_Click(object sender, EventArgs e)
 {
     if (IsServerOnline)
     {
         string s = serverModifier.StopServer(Username, ServerName);
         if (s == "true")
         {
             IsServerOnline = false; consoleOverlay.IsOnline = false;
         }
         else
         {
             IsServerOnline = true; consoleOverlay.IsOnline = true;
         }
     }
     else
     {
         string s = serverModifier.StartServer(Username, ServerName, StartFile, ServerArgs);
         if (s == "true")
         {
             IsServerOnline = true; consoleOverlay.IsOnline = true;
         }
         else
         {
             IsServerOnline = false; consoleOverlay.IsOnline = false;
         }
     }
 }
Exemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     Console.WriteLine(mod.StartServer(Username, Server, StartFile, ServerArgs));
 }