Example #1
0
 private void wserverstopbtn_Click(object sender, EventArgs e)
 {
     wServer.Stop();
     wServer.Dispose();
     wServer = new ProcessHandler(wServerOutput, wServerLoc, this);
     wServerOutput.Clear();
 }
Example #2
0
 private void DisposeProcessHandler()
 {
     ProcessHandler.Exited             -= process_Exited;
     ProcessHandler.OutputDataReceived -= process_OutputDataReceived;
     ProcessHandler.ErrorDataReceived  -= process_ErrorDataReceived;
     ProcessHandler.Dispose();
     ProcessHandler = null;
 }
Example #3
0
 private void mysqlstopbtn_Click(object sender, EventArgs e)
 {
     MySQL.Stop();
     MySQL.Dispose();
     MySQL = new ProcessHandler(MySQLOutput, MySQLStopLoc, this);
     MySQL.Start();
     MySQL.Wait();
     MySQL.Dispose();
     MySQL = new ProcessHandler(MySQLOutput, MySQLStartLoc, this);
     MySQLOutput.Clear();
 }