public ImageResourcesController( IImageResourcesService imageResourcesService, ResourcesSettings settings ) { _imageResourcesService = imageResourcesService; _settings = settings; }
public UserData() { display = new Display(); resourcesSettings = new ResourcesSettings(); appSettings = new AppSettings(); appDebugSettings = new AppDebugSettings(); mqttSettings = new MQTTSettings(); httpRequestSettings = new HTTPRequestSettings(); }
/// <summary> /// Initialize Resources module /// </summary> /// <param name="manager">MonoGame ContentManager to use</param> public ResourceManager(ContentManager manager, ResourcesSettings settings) { _manager = manager ?? throw new NullReferenceException(nameof(manager)); _loadedResources = new List <IDisposable>(); }
private static Folder GetChildTreeviewNode(DirectoryInfo directory, Folder parent, ResourcesSettings resource, int level) { var exclude = FileBrowser.Config.Settings.Directory.GetHideDirectories(); var node = new Folder() { IsRoot = false, Level = level, Name = directory.Name, Parent = parent, Path = string.Concat(parent.Path, directory.Name, "/"), ResourceType = resource.ResourceType }; foreach (var child in directory.GetDirectories()) { if (!exclude.Contains(child.Name, StringComparison.InvariantCultureIgnoreCase)) { node.Children.Add(FolderViewHelper.GetChildTreeviewNode(child, node, resource, (level + 1))); } } return(node); }