static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); #if (!DEBUG) Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); #endif MainForm = new formMain(); Application.Run(MainForm); }
public void Initialize() { Configuration.WriteSetting("AA2PLAY", "true"); Configuration.WriteSetting("AA2EDIT", "true"); Configuration.WriteSetting("AA2PLAY_Path", Environment.CurrentDirectory + @"\testdir\"); Configuration.WriteSetting("AA2EDIT_Path", Environment.CurrentDirectory + @"\testdir\"); Configuration.saveMods(new ModDictionary()); form = new formMain(); form.Visible = true; form.CreateControl(); form.imageTimer.Enabled = false; form.Show(); }
public LogEntry(string entry, formMain.LogIcon icon) { log = entry; time = DateTime.Now; logicon = icon; }