Пример #1
0
        void _dossierWatcher_Changed(object sender, FileSystemEventArgs e)
        {
            if (GetPlayerName == WOTHelper.PlayerIdFromDatFile(e.Name))
            {
                if (string.Compare(_dossierFilePath, e.FullPath, true) != 0)
                {
                    using (PlayerListing player = new PlayerListing(_messages))
                    {
                        player.SetPlayerWatchFile(GetPlayerID, e.FullPath);
                        player.Save();
                    }

                    _dossierFilePath = e.FullPath;
                }
                ProcessDossierFile();
            }
        }