public Form1() { string config_file = Application.StartupPath + @"\watch.ini"; try { config = new SimpleConfig(config_file); config.fileChanged += new EventHandler(config_fileChanged); config.Sync(this); } catch (Exception e) { MessageBox.Show("Error initializing: " + config_file + "\n" + e.Message); this.Close(); } InitializeComponent(); runner = new AppRunner(); pm = new ProcessManager(); pm.registerApp(new Apache("", "")); pm.registerApp(new Nginx("", "")); pm.registerApp(new PHP("", "")); pm.registerApp(new MySQL("", "")); pm.onProcessUpdated += new ProcessManager.ProcessUpdateEventHandler(pm_onProcessUpdated); pm.start(); growlBootUp(); autoStartFileWatcher(); updateProcessInfo(); }