public frmMain(string[] args) { InitializeComponent(); // Load settings if (args.Length.Equals(0)) { m_objSettings = new Settings(string.Empty); } else { m_objSettings = new Settings(args[0]); } m_objSettings.LoadSettings(); m_objFileWatcher = new FileWatcher(); m_objFileWatcher.OnLibraryUpdated += onFileChanged; m_objFileWatcher.OnLibraryRenamed += onFileChanged; }
protected override void OnStart(string[] args) { m_objFileWatcher = new FileWatcher(); m_objFileWatcher.OnLibraryUpdated += onFileChanged; m_objFileWatcher.OnLibraryRenamed += onFileChanged; }