예제 #1
0
        private void ExamineFile(FileEntry file)
        {
            if (fileManager == null)
            {
                return;
            }
            if (!file.IsFile)
            {
                return;
            }
            ViewerForm viewer = new ViewerForm(file.FormattedName, fileManager.ReadFileAsString(file));

            viewer.Owner = this;
            viewer.Show();
        }
예제 #2
0
 private void UpdateFiles(FileEntry file)
 {
     if (fileManager == null)
     {
         return;
     }
     if (!file.IsDirectory)
     {
         ViewerForm viewer = new ViewerForm(file.FormattedName, fileManager.ReadFileAsString(file));
         viewer.Owner = this;
         viewer.Show();
         return;
     }
     try
     {
         fileManager.ChangeDirectory(file.FormattedName);
     }
     catch (DirectoryNotFoundException)
     {
         MessageBox.Show(this, "Directory does not exist.", "Undelete");
     }
     RefreshFiles();
 }
 private void ExamineFile(FileEntry file)
 {
     if(fileManager == null)
         return;
     if(!file.IsFile)
         return;
     ViewerForm viewer = new ViewerForm(file.FormattedName, fileManager.ReadFileAsString(file));
     viewer.Owner = this;
     viewer.Show();
 }
 private void UpdateFiles(FileEntry file)
 {
     if(fileManager == null)
         return;
     if(!file.IsDirectory)
     {
         ViewerForm viewer = new ViewerForm(file.FormattedName, fileManager.ReadFileAsString(file));
         viewer.Owner = this;
         viewer.Show();
         return;
     }
     try
     {
         fileManager.ChangeDirectory(file.FormattedName);
     }
     catch(DirectoryNotFoundException)
     {
         MessageBox.Show(this, "Directory does not exist.", "Undelete");
     }
     RefreshFiles();
 }