Esempio n. 1
0
        private void Bot_OnComplete(List <TrackFile> Files)
        {
            _bot.Logger.SaveToFile(CoreVars.GetFilePath(PluginSettings.Folder, CoreVars.BotLogFile));

            if (MessageBox.Show(
                    $"Searching for tags completed!\n{Files.Where(x => x != null).Count()}" +
                    " files need to be updated, this could take a while, please be patient",
                    "Process Completed", MessageBoxButton.OK) == MessageBoxResult.OK)
            {
                InvokeOnSave(this, Files);
            }
            Close();
        }
Esempio n. 2
0
        public GmtBot(List <TrackFile> fileList, GmtBotOptions options)
        {
            _files     = fileList;
            Options    = options;
            _cacheFile = CoreVars.GetFilePath(PluginSettings.Folder, "cache.bin");

            Logger = new LogBot();

            if (Options.UsePersistentCache)
            {
                LoadCache();
            }
            else
            {
                Cache = new CacheBot();
            }
        }