mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-03-29 08:19:38 -06:00
40 lines
829 B
C#
40 lines
829 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace SpiffCode
|
|
{
|
|
/// <summary>
|
|
/// Summary description for AniMax.
|
|
/// </summary>
|
|
public class AniMax
|
|
{
|
|
private static Form s_frmMain;
|
|
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main(string[] astrArgs) {
|
|
string strOpenFileName = null;
|
|
if (astrArgs.Length != 0)
|
|
strOpenFileName = astrArgs[0];
|
|
|
|
Globals.NullDocument = new AnimDoc(Globals.TileSize,
|
|
Globals.FrameRate);
|
|
Globals.NullDocument.Dirty = false;
|
|
Globals.ActiveDocument = Globals.NullDocument;
|
|
|
|
s_frmMain = new MainForm(strOpenFileName);
|
|
#if true
|
|
Application.Run(s_frmMain);
|
|
#else
|
|
try {
|
|
Application.Run(s_frmMain);
|
|
} catch (Exception ex) {
|
|
MessageBox.Show(ex.ToString());
|
|
}
|
|
#endif
|
|
}
|
|
}
|
|
}
|