public void ExitOk(Window callingWindow) { #if FRB_XNA FlatRedBallServices.Game.Exit(); #else GameForm.Exit(form); #endif }
public static void Exit(GameForm form) { System.Windows.Forms.Cursor.Show(); form.Dispose(); }
static void Main(string[] args) { //try { GameForm frm = new GameForm(); if (frm.IsDisposed) return; frm.Run(args); } //catch (Exception e) //{ // string error = e.ToString(); // if (e.InnerException != null) // { // error += "\n\n"; // error += e.InnerException.ToString(); // } // System.Windows.Forms.MessageBox.Show(error); //} }