private static void OnApplicationExit(object sender, EventArgs e) { if (Direct3D.FrameCount > -1) { Direct3D.Shutdown(); } }
private static void OnApplicationExit(object sender, EventArgs e) { if (AppForm != null) { Log.RemoveReader(AppForm); } Log.WriteLine("Shutting down IceFlake"); Direct3D.Shutdown(); }
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(); }