C# 클래스 Common.RecentFileList

상속: System.Windows.Controls.Separator
파일 보기 프로젝트 열기: rsdn/nitra 1 사용 예제들

공개 메소드들

메소드 설명
HookFileMenu ( ) : void
InsertFile ( string filepath ) : void
InsertMenuItems ( ) : void
LoadRecentFiles ( ) : void
MenuItem_Click ( object sender, EventArgs e ) : void
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, RoutedEventArgs e ) : void

보호된 메소드들

메소드 설명
OnMenuClick ( System.Windows.Controls.MenuItem menuItem ) : void

비공개 메소드들

메소드 설명
GetFilepath ( System.Windows.Controls.MenuItem menuItem ) : string
GetMenuItemText ( int index, string filepath, string displaypath ) : string
LoadRecentFilesCore ( ) : List

메소드 상세

HookFileMenu() 공개 메소드

public HookFileMenu ( ) : void
리턴 void

InsertFile() 공개 메소드

public InsertFile ( string filepath ) : void
filepath string
리턴 void

InsertMenuItems() 공개 메소드

public InsertMenuItems ( ) : void
리턴 void

LoadRecentFiles() 공개 메소드

public LoadRecentFiles ( ) : void
리턴 void

MenuItem_Click() 공개 메소드

public MenuItem_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

OnMenuClick() 보호된 메소드

protected OnMenuClick ( System.Windows.Controls.MenuItem menuItem ) : void
menuItem System.Windows.Controls.MenuItem
리턴 void

RecentFileList() 공개 메소드

public RecentFileList ( ) : Common.System
리턴 Common.System

RemoveFile() 공개 메소드

public RemoveFile ( string filepath ) : void
filepath string
리턴 void

RemoveMenuItems() 공개 메소드

public RemoveMenuItems ( ) : void
리턴 void

SetMenuItems() 공개 메소드

public SetMenuItems ( ) : void
리턴 void

ShortenPathname() 정적인 공개 메소드

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.)

static public ShortenPathname ( string pathname, int maxLength ) : string
pathname string
maxLength int
리턴 string

UseRegistryPersister() 공개 메소드

public UseRegistryPersister ( ) : void
리턴 void

UseRegistryPersister() 공개 메소드

public UseRegistryPersister ( string key ) : void
key string
리턴 void

UseXmlPersister() 공개 메소드

public UseXmlPersister ( ) : void
리턴 void

UseXmlPersister() 공개 메소드

public UseXmlPersister ( Stream stream ) : void
stream Stream
리턴 void

UseXmlPersister() 공개 메소드

public UseXmlPersister ( string filepath ) : void
filepath string
리턴 void

_FileMenu_SubmenuOpened() 공개 메소드

public _FileMenu_SubmenuOpened ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
리턴 void