Пример #1
0
        /// <summary>
        /// Gets backups dictionary from log file and assigns it to field _dictionary.
        /// </summary>
        private void GetBackupsDictionary()
        {
            BackupsLog backupsLog = new BackupsLog();

            _dictionary = new Dictionary <DateTime, List <FileData> >();

            try
            {
                _dictionary = backupsLog.GetDictionaryFromJson();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + Environment.NewLine + ex.StackTrace);
            }
        }
Пример #2
0
 public Watcher()
 {
     _backupsLog = new BackupsLog();
     _backupsLog.BackupsLogDictionary = _backupsLog.GetDictionaryFromJson();
 }