示例#1
0
 private static void OnApplicationExit(object sender, EventArgs e)
 {
     if (Direct3D.FrameCount > -1)
     {
         Direct3D.Shutdown();
     }
 }
示例#2
0
 private static void OnApplicationExit(object sender, EventArgs e)
 {
     if (AppForm != null)
     {
         Log.RemoveReader(AppForm);
     }
     Log.WriteLine("Shutting down IceFlake");
     Direct3D.Shutdown();
 }
示例#3
0
        private void IceForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            Log.RemoveReader(this);

            foreach (Script s in Manager.Scripts.Scripts.Where(x => x.IsRunning))
            {
                s.Stop();
            }

            // Let's give us a chance to undo some damage.
            Direct3D.Shutdown();
        }