private void InitiateThread()
        {
            ServerProcessListener spl = new ServerProcessListener(this);
            Thread InstanceCaller     = new Thread(new ThreadStart(spl.InstanceMethod));

            InstanceCaller.IsBackground = true;
            InstanceCaller.Start();
        }
 void OnStopBtnClick(object sender, RoutedEventArgs e)
 {
     WriteToConsole("Killing server...");
     if (ServerProcessListener.KillProcess())
     {
         Logger.WriteToLogFile("Server killed with server tool");
     }
 }
 void OnCloseProcessBtnClick(object sender, RoutedEventArgs e)
 {
     WriteToConsole("Shutting down server...");
     if (ServerProcessListener.ExitProcess())
     {
         Logger.WriteToLogFile("Server was shut down with server tool");
     }
 }
 void OnRestartBtnClick(object sender, RoutedEventArgs e)
 {
     ServerProcessListener.KillProcess();
     Logger.WriteToLogFile("Restarted server with server tool");
     ServerLauncher.StartServer();
 }