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; }
public void Restart() { settings = core.SettingsManager.LoadSettingsForBasicFileSorter(); }