예제 #1
0
 static void Run()
 {
     using (XnaGate gate = new XnaGate())
     {
         gate.DragFiles      = (strs) => SMain.DragFile(strs);
         gate.OnInitialized += new Action <EntryEngine.Entry>(gate_OnInitialized);
         try
         {
             gate.Run();
         }
         catch (Exception ex)
         {
             #if DEBUG
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(ex.Message);
             Console.WriteLine(ex.StackTrace);
             Console.ReadKey();
             #endif
         }
     }
 }