コード例 #1
0
        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;
        }
コード例 #2
0
 protected override void OnStart(string[] args)
 {
     m_objFileWatcher = new FileWatcher();
     m_objFileWatcher.OnLibraryUpdated += onFileChanged;
     m_objFileWatcher.OnLibraryRenamed += onFileChanged;
 }