Esempio n. 1
0
 public FileStreamResult FileManagerPartialDownload(string filtered)
 {
     var app = DocumentsApp.Instance;
     string currentFilter = filtered ?? "All";
     var model = new HomeModel()
     {
         DocumentsApp = app,
         FileSystemProvider = CreateFileSystemProvider(app, currentFilter),
         IsFilterApplied = currentFilter != "All",
         PanelName = SelectedFilterText(currentFilter, "FilterNameLabel"),
         SourceName = currentFilter,
         FilterName = currentFilter
     };
     return FileManagerExtension.DownloadFiles("FileManager", model.FileSystemProvider);
 }
Esempio n. 2
0
 public ActionResult Index()
 {
     var app = DocumentsApp.Instance;
     string currentFilter = "All";
     var model = new HomeModel()
     {
         DocumentsApp = app,
         FileSystemProvider = CreateFileSystemProvider(app, currentFilter),
         IsFilterApplied = currentFilter != "All",
         PanelName = SelectedFilterText(currentFilter, "All documents"),
         SourceName = currentFilter,
         FilterName = currentFilter
     };
     return View(model);
 }
Esempio n. 3
0
 public ActionResult FileManagerPartial(string filtered)
 {
     var app = DocumentsApp.Instance;
     string currentFilter = filtered ?? "All";
     var model = new HomeModel()
     {
         DocumentsApp = app,
         FileSystemProvider = CreateFileSystemProvider(app, currentFilter),
         IsFilterApplied = currentFilter != "All",
         PanelName = SelectedFilterText(currentFilter, "FilterNameLabel"),
         SourceName = currentFilter,
         FilterName = currentFilter
     };
     return PartialView("_FileManagerPartial", model);
 }