C# Class Channel9Downloader.ViewModels.Framework.ValidatingObject

This class serves as base class for objects that support validation.
Inheritance: ObservableObject, IValidatingObject
Mostrar archivo Open project: MadCowDevelopment/Channel9Downloader

Public Methods

Method Description
this ( string propertyName ) : string

Gets the error message for the property with the given name.

Protected Methods

Method Description
AddError ( string propertyName, string message ) : void

Adds an error to the errors dictionary.

ValidateProperty ( string propertyName ) : void

Validates a property.

Private Methods

Method Description
OnDeserializing ( StreamingContext context ) : void
RemoveError ( string propertyName ) : void

Removes an error from the errors dictionary.

Method Details

AddError() protected method

Adds an error to the errors dictionary.
protected AddError ( string propertyName, string message ) : void
propertyName string Name of the property for which an error should be added.
message string Error message that will be shown to the user.
return void

ValidateProperty() protected method

Validates a property.
protected ValidateProperty ( string propertyName ) : void
propertyName string Name of the property to validate.
return void

this() public method

Gets the error message for the property with the given name.
public this ( string propertyName ) : string
propertyName string The name of the property whose error message to get.
return string