Метод | Описание | |
---|---|---|
HookFileMenu ( ) : void | ||
InsertFile ( string filepath ) : void | ||
InsertMenuItems ( ) : void | ||
LoadRecentFiles ( ) : void | ||
MenuItem_Click ( object sender, |
||
RecentFileList ( ) : Common.System | ||
RemoveFile ( string filepath ) : void | ||
RemoveMenuItems ( ) : void | ||
SetMenuItems ( ) : void | ||
ShortenPathname ( string pathname, int maxLength ) : string |
Shortens a pathname for display purposes. Shortens a pathname by either removing consecutive components of a path and/or by removing characters from the end of the filename and replacing then with three elipses (...) In all cases, the root of the passed path will be preserved in it's entirety. If a UNC path is used or the pathname and maxLength are particularly short, the resulting path may be longer than maxLength. This method expects fully resolved pathnames to be passed to it. (Use Path.GetFullPath() to obtain this.) |
|
UseRegistryPersister ( ) : void | ||
UseRegistryPersister ( string key ) : void | ||
UseXmlPersister ( ) : void | ||
UseXmlPersister ( Stream stream ) : void | ||
UseXmlPersister ( string filepath ) : void | ||
_FileMenu_SubmenuOpened ( object sender, |
Метод | Описание | |
---|---|---|
OnMenuClick ( System.Windows.Controls.MenuItem menuItem ) : void |
Метод | Описание | |
---|---|---|
GetFilepath ( System.Windows.Controls.MenuItem menuItem ) : string | ||
GetMenuItemText ( int index, string filepath, string displaypath ) : string | ||
LoadRecentFilesCore ( ) : List |
public InsertFile ( string filepath ) : void | ||
filepath | string | |
Результат | void |
public MenuItem_Click ( object sender, |
||
sender | object | |
e | ||
Результат | void |
protected OnMenuClick ( System.Windows.Controls.MenuItem menuItem ) : void | ||
menuItem | System.Windows.Controls.MenuItem | |
Результат | void |
public RemoveFile ( string filepath ) : void | ||
filepath | string | |
Результат | void |
static public ShortenPathname ( string pathname, int maxLength ) : string | ||
pathname | string | |
maxLength | int | |
Результат | string |
public UseRegistryPersister ( string key ) : void | ||
key | string | |
Результат | void |
public UseXmlPersister ( Stream stream ) : void | ||
stream | Stream | |
Результат | void |
public UseXmlPersister ( string filepath ) : void | ||
filepath | string | |
Результат | void |
public _FileMenu_SubmenuOpened ( object sender, |
||
sender | object | |
e | ||
Результат | void |