-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPanelCommandShowAFS.cs
More file actions
43 lines (36 loc) · 1.16 KB
/
Copy pathPanelCommandShowAFS.cs
File metadata and controls
43 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace netCommander
{
public class PanelCommandShowAFS : PanelCommandBase
{
public PanelCommandShowAFS()
{
ToolStripMenuItem menu = new ToolStripMenuItem();
menu.ShortcutKeys = Keys.Control | Keys.S;
menu.ShowShortcutKeys = true;
menu.Text = "Show NTFS file streams";
CommandMenu = menu;
}
protected override void internal_command_proc()
{
QueryPanelInfoEventArgs e = new QueryPanelInfoEventArgs();
OnQueryCurrentPanel(e);
if (e.FocusedIndex == -1)
{
return;
}
if (e.ItemCollection == null)
{
return;
}
DirectoryList dl = (DirectoryList)e.ItemCollection;
string target_file = Path.Combine(dl.DirectoryPath, dl.GetItemDisplayNameLong(e.FocusedIndex));
AFSdialog dialog = new AFSdialog(target_file);
dialog.ShowDialog();
}
}
}