示例#1
0
 public void SetProperty(ObservableCollection <PropertyItem> target)
 {
     try
     {
         var fpas = new FilePropertyAccessorService(_folderName, _fileLists);
         foreach (var item in target)
         {
             item.IsChangePropertyTarget = true;
         }
         fpas.SetProperty(target);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public ObservableCollection <PropertyItem> GetProperties()
 {
     try
     {
         if (string.IsNullOrEmpty(_folderName) || string.IsNullOrWhiteSpace(_folderName))
         {
             throw new ArgumentException(Properties.Resources.NullEmptySpace.ToString());
         }
         var fpas = new FilePropertyAccessorService(_folderName, _fileLists);
         return(fpas.FilePropertyLists);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }