public ImageResourcesController(
     IImageResourcesService imageResourcesService,
     ResourcesSettings settings
     )
 {
     _imageResourcesService = imageResourcesService;
     _settings = settings;
 }
Ejemplo n.º 2
0
 public UserData()
 {
     display             = new Display();
     resourcesSettings   = new ResourcesSettings();
     appSettings         = new AppSettings();
     appDebugSettings    = new AppDebugSettings();
     mqttSettings        = new MQTTSettings();
     httpRequestSettings = new HTTPRequestSettings();
 }
Ejemplo n.º 3
0
 /// <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>();
 }
Ejemplo n.º 4
0
        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);
        }