Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public Watcher()
 {
     _backupsLog = new BackupsLog();
     _backupsLog.BackupsLogDictionary = _backupsLog.GetDictionaryFromJson();
 }