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; } }
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; } }