Exemple #1
0
 /// <summary>
 /// Метод добавляющий журналы!!!
 /// </summary>
 /// <param name="pathJurnalXml">Путь к Журналам с ошибками</param>
 public void AddJurnal(string pathJurnalXml)
 {
     if (Directory.Exists(pathJurnalXml))
     {
         var filelogica = new FileLogica();
         XmlReportJurnal.Clear();
         foreach (var file in FileLogica.FileinfoMass(pathJurnalXml))
         {
             XmlReportJurnal.Add(new ReportJurnalProperty()
             {
                 Icon = filelogica.Extracticonfile(file.FullName), Name = file.Name, Path = file.FullName
             });
         }
     }
 }
Exemple #2
0
 public void DeleteXmlReportJurnal()
 {
     File.Delete(XmlFile.Path);
     XmlReportJurnal.Remove(XmlReportJurnal.Single(fullpath => fullpath.Path == XmlFile.Path));
 }