Esempio n. 1
0
 void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!fatal)
     {
         Noxico.SaveGame();
     }
     Running = false;
 }
Esempio n. 2
0
        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
        }