Click or drag to resize

IMruManager Interface

Interface that describes an API that manages a MRU (Most Recently Used files) table which is stored in the AppSettings file.

Namespace:  BionicCode.Utilities.Net.Framework.Wpf.Settings
Assembly:  BionicCode.Utilities.Net.Framework.Wpf (in BionicCode.Utilities.Net.Framework.Wpf.dll) Version: 1.0.3.0 (1.0.0.0)
Syntax
public interface IMruManager : IViewModel, 
	INotifyPropertyChanged, INotifyDataErrorInfo

The IMruManager type exposes the following members.

Properties
  NameDescription
Public propertyHasErrors
Gets a value that indicates whether the entity has validation errors.
(Inherited from INotifyDataErrorInfo.)
Public propertyMaxMostRecentlyUsedCount
The maximum number of files that are kept in the MRU table.
The default value is 10.
Public propertyMostRecentlyUsedFile
Gets the MRU file which is the last file added to the MRU table.
Public propertyMostRecentlyUsedFiles
Top
Methods
  NameDescription
Public methodAddMostRecentlyUsedFile
Adds a file with the specified path to the MRU table.
Public methodClear
Clears the MRU list.
Public methodGetErrors
Gets the validation errors for a specified property or for the entire entity.
(Inherited from INotifyDataErrorInfo.)
Public methodGetPropertyErrors
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
(Inherited from IViewModel.)
Public methodPropertyHasError
Checks whether the specified property has errors or is valid.
(Inherited from IViewModel.)
Top
Events
  NameDescription
Public eventErrorsChanged
Occurs when the validation errors have changed for a property or for the entire entity.
(Inherited from INotifyDataErrorInfo.)
Public eventFileAdded
Raised when a new file was added to the MRU list. The event args contains the old and the new MostRecentlyUsedFileItem.
Once the max MostRecentlyUsedFileItem limit is reached, the least used file will be removed from the list to make space for the new item.
In this case the OldValue is the removed oldest item in the list.
Otherwise OldValue will be null.
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from INotifyPropertyChanged.)
Public eventPropertyValueChanged
PropertyChanged implementation that sends old value and new value of the change and raises the INotifyPropertyChanged event.
(Inherited from IViewModel.)
Top
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md