1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-14 22:26:29 +09:00

Tweaked/fixed some samples

This commit is contained in:
lidgren
2010-12-22 22:10:08 +00:00
parent 6866e91cd8
commit 57525d980c
4 changed files with 39 additions and 14 deletions

View File

@@ -19,8 +19,15 @@ namespace ImageClient
Application.SetCompatibleTextRenderingDefault(false);
MainForm = new Form1();
Application.Idle += new EventHandler(AppLoop);
Application.Run(MainForm);
try
{
Application.Idle += new EventHandler(AppLoop);
Application.Run(MainForm);
}
catch (Exception ex)
{
MessageBox.Show("Ouch: " + ex);
}
}
static void AppLoop(object sender, EventArgs e)