Esempio n. 1
0
        private FileManager GetFileManagerModel()
        {
            var fileManager = new FileManager
            {
                Width           = CssLength.Percentage(100),
                DisplayLanguage = "en"
            };

            fileManager.RootFolders.Add(new FileManagerRootFolder
            {
                Name     = "Root Folder 1",
                Location = "~/App_Data/RootFolder1"
            });
            fileManager.RootFolders[0].AccessControls.Add(new FileManagerAccessControl
            {
                Path = @"\",
                AllowedPermissions = FileManagerPermissions.Full
            });

            return(fileManager);
        }
Esempio n. 2
0
        public ActionResult UsingLayout()
        {
            var fileManager = new FileManager
            {
                Width           = CssLength.Percentage(100),
                DisplayLanguage = "en"
            };

            fileManager.RootFolders.Add(new FileManagerRootFolder
            {
                Name     = "Root Folder 1",
                Location = "~/App_Data/RootFolder1"
            });
            fileManager.RootFolders[0].AccessControls.Add(new FileManagerAccessControl
            {
                Path = @"\",
                AllowedPermissions = FileManagerPermissions.Full
            });

            return(View(fileManager));
        }