C# Class Common.RecentFileList.XmlPersister

Inheritance: IPersist
Show file Open project: rsdn/nitra

Public Methods

Method Description
CopyExcluding ( List source, string exclude, List target, int max ) : void
InsertFile ( string filepath, int max ) : void
RecentFiles ( int max ) : List
RemoveFile ( string filepath, int max ) : void
Save ( List list, int max ) : void
Update ( string filepath, bool insert, int max ) : void
XmlPersister ( ) : Common.System
XmlPersister ( Stream stream ) : Common.System
XmlPersister ( string filepath ) : Common.System

Private Methods

Method Description
Load ( int max ) : List
OpenStream ( FileMode mode ) : SmartStream

Method Details

CopyExcluding() public method

public CopyExcluding ( List source, string exclude, List target, int max ) : void
source List
exclude string
target List
max int
return void

InsertFile() public method

public InsertFile ( string filepath, int max ) : void
filepath string
max int
return void

RecentFiles() public method

public RecentFiles ( int max ) : List
max int
return List

RemoveFile() public method

public RemoveFile ( string filepath, int max ) : void
filepath string
max int
return void

Save() public method

public Save ( List list, int max ) : void
list List
max int
return void

Update() public method

public Update ( string filepath, bool insert, int max ) : void
filepath string
insert bool
max int
return void

XmlPersister() public method

public XmlPersister ( ) : Common.System
return Common.System

XmlPersister() public method

public XmlPersister ( Stream stream ) : Common.System
stream Stream
return Common.System

XmlPersister() public method

public XmlPersister ( string filepath ) : Common.System
filepath string
return Common.System