Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public LogEntry(string entry, formMain.LogIcon icon)
 {
     log = entry;
     time = DateTime.Now;
     logicon = icon;
 }