Exemplo n.º 1
0
 public void Open(File file)
 {
     if (file is Back) {
         Return(ParentFolder);
         return;
     }
     ParentFolder = (Directory)file;
 }
Exemplo n.º 2
0
 public bool CanOpen(File file)
 {
     return file is Directory || file is Back;
 }
Exemplo n.º 3
0
 public bool CanViewFile(File file)
 {
     return file.GetType() == typeof(File);
 }
Exemplo n.º 4
0
 public void ViewFile(File file)
 {
     var document = DocumentManagerService.CreateDocument("FileView", file.Path, this);
     if (document != null) {
         document.Title = file.Path;
         document.Show();
     }
 }