예제 #1
0
        public void Init()
        {
            settings = core.SettingsManager.LoadSettingsForBasicFileSorter();
            core.CommandExecuter.AddCommand("fs_add_observer_folder", AddObserverFolder);
            core.CommandExecuter.AddCommand("fs_add_extension_definition", AddExtensionDefinition);
            core.CommandExecuter.AddCommand("fs_enable", Enable);
            core.CommandExecuter.AddCommand("fs_disable", Disable);
            core.CommandExecuter.AddCommand("fs_set_scan_freq", SetScanFrequency);

            CheckAndCreateCategoryFolders();

            timer          = new Timer(settings.GetScanFrequencyInMillisec());
            timer.Elapsed += Timer_Elapsed;
        }
예제 #2
0
 public void Restart()
 {
     settings = core.SettingsManager.LoadSettingsForBasicFileSorter();
 }