Пример #1
0
    public List<String> CheckForImagesForDirectory(string directory, Settings settings) {
      if (settings.IncludeSubfolders==null||!(bool)settings.IncludeSubfolders) {
        GetImagesForFolder(directory);
      } else {
        if (Directory.GetDirectories(directory).Any()) {
          foreach (var dir in Directory.GetDirectories(directory)) { GetImagesForFolder(dir); }
        }
        this.GetImagesForFolder(directory);
      }

      return _imagesList;
    }
 public SettingWindowViewModel(IChildWindow childWindow,IEventAggregator eventAggregator, IGlobalParametersService globalParametersService, IUnityContainer container, ILogService logService) {
   _eventAggregator = eventAggregator;
   _globalParametersService = globalParametersService;
   _container = container;
   _logService = logService;
   _childWindow = childWindow;
   NewSettings = new Settings();
   OkCommand=new DelegateCommand(Ok);
   CancelCommand=new DelegateCommand(Cancel);
   FolderSelectCommand=new DelegateCommand(FolderSelect);
   ErrorVisibility = Visibility.Collapsed;
   ErrorMessage = string.Empty;
   OnLoadCommand = new DelegateCommand(OnLoad);
 }
Пример #3
0
 public List<string> CheckForImagesFromUrl(string imagePath, Settings settings) {
   return new List<string>();
 }