コード例 #1
0
 protected override void EndRun()
 {
     base.EndRun();
     WatchdogProcess.Stop();
     RenderProcess.Stop();
     UpdaterProcess.Stop();
     LoaderProcess.Stop();
     SoundProcess.Stop();
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: yinwuu/openrails
 public void ProcessReportError(Exception error)
 {
     // Turn off the watchdog since we're going down.
     WatchdogProcess.Stop();
     // Log the error first in case we're burning.
     Trace.WriteLine(new FatalException(error));
     // Stop the world!
     Exit();
     // Show the user that it's all gone horribly wrong.
     if (Settings.ShowErrorDialogs)
         System.Windows.Forms.MessageBox.Show(error.ToString(), Application.ProductName + " " + VersionInfo.VersionOrBuild);
 }