Ejemplo n.º 1
0
        public async Task ForceRead()
        {
            var directory = new DirectoryInfo(Environment.GetEnvironmentVariable("userprofile") + @"\Saved Games\Frontier Developments\Elite Dangerous\");

            _currentJournalFile = directory.GetFiles("Journal.*").OrderByDescending(x => x.LastWriteTime).First().FullName;
            JournalFileSelected?.Invoke(this, _currentJournalFile);
            await ReadAsync();
        }
Ejemplo n.º 2
0
 private void fileWatcher_Created(object sender, FileSystemEventArgs e)
 {
     if (e.Name.StartsWith("Journal"))
     {
         _currentJournalFile = e.FullPath;
         JournalFileSelected?.Invoke(this, _currentJournalFile);
         ReadAsync();
     }
 }
Ejemplo n.º 3
0
 private void reader_JournalFileSelected(object sender, string e)
 {
     JournalFileSelected?.Invoke(this, e);
 }