Пример #1
0
        public FileManagerFeaturesOption()
        {
            if (rights == null)
            {
                rights = new List <string>();
            }
            this.settingsEditing = new FileManagerSettingsEditing(null)
            {
                AllowCopy     = rights.Contains("AllowUpdate"),
                AllowCreate   = rights.Contains("AllowCreate"),
                AllowDelete   = rights.Contains("AllowDelete"),
                AllowDownload = rights.Contains("AllowDownload"),
                AllowMove     = rights.Contains("AllowUpdate"),
                AllowRename   = rights.Contains("AllowUpdate")
            };

            this.settingsToolbar = new FileManagerSettingsToolbar(null)
            {
                ShowPath      = true,
                ShowFilterBox = true
            };
            this.settingsFolders = new FileManagerSettingsFolders(null)
            {
                Visible               = true,
                EnableCallBacks       = false,
                ShowFolderIcons       = true,
                ShowLockedFolderIcons = true
            };
            this.settingsUpload         = new MVCxFileManagerSettingsUpload();
            this.settingsUpload.Enabled = rights.Contains("AllowUpload");
            this.settingsUpload.AdvancedModeSettings.EnableMultiSelect = true;
        }
Пример #2
0
        public FileManagerFeaturesOption()
        {
            if (rights == null) rights = new List<string>();
            this.settingsEditing = new FileManagerSettingsEditing(null)
            {
                AllowCopy = rights.Contains("AllowUpdate"),
                AllowCreate = rights.Contains("AllowCreate"),
                AllowDelete = rights.Contains("AllowDelete"),
                AllowDownload = rights.Contains("AllowDownload"),
                AllowMove = rights.Contains("AllowUpdate"),
                AllowRename = rights.Contains("AllowUpdate")
            };

            this.settingsToolbar = new FileManagerSettingsToolbar(null)
            {
                ShowPath = true,
                ShowFilterBox = true
            };
            this.settingsFolders = new FileManagerSettingsFolders(null)
            {
                Visible = true,
                EnableCallBacks = false,
                ShowFolderIcons = true,
                ShowLockedFolderIcons = true
            };
            this.settingsUpload = new MVCxFileManagerSettingsUpload();
            this.settingsUpload.Enabled = rights.Contains("AllowUpload");
            this.settingsUpload.AdvancedModeSettings.EnableMultiSelect = true;
        }
 public FileManagerFeaturesOptions()
 {
     this.settingsEditing = new FileManagerSettingsEditing(null)
     {
         AllowCreate   = true,
         AllowMove     = true,
         AllowDelete   = true,
         AllowRename   = true,
         AllowCopy     = true,
         AllowDownload = true
     };
     this.settingsToolbar = new FileManagerSettingsToolbar(null)
     {
         ShowPath      = true,
         ShowFilterBox = true
     };
     this.settingsFolders = new FileManagerSettingsFolders(null)
     {
         Visible               = true,
         EnableCallBacks       = false,
         ShowFolderIcons       = true,
         ShowLockedFolderIcons = true
     };
     this.settingsFileList = new FileManagerSettingsFileList(null)
     {
         ShowFolders      = true,
         ShowParentFolder = true
     };
     this.settingsBreadcrumbs = new FileManagerSettingsBreadcrumbs(null)
     {
         Visible = true,
         ShowParentFolderButton = true,
         Position = BreadcrumbsPosition.Top
     };
     this.settingsUpload         = new MVCxFileManagerSettingsUpload();
     this.settingsUpload.Enabled = true;
     this.settingsUpload.AdvancedModeSettings.EnableMultiSelect = true;
 }