void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (!fatal) { Noxico.SaveGame(); } Running = false; }
void timer_Tick(object sender, EventArgs e) { #if DEBUG Noxico.Update(); #else try { Noxico.Update(); } catch (Exception x) { new ErrorForm(x).ShowDialog(this); SystemMessageBox.Show(this, x.ToString(), Application.ProductName, MessageBoxButtons.OK); Running = false; fatal = true; } #endif }