示例#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);
 }
示例#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);
 }
示例#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);
 }