C# Class GuoKun.Configuration.BaseViewModel

ViewModel抽象基类,增加了变化通知、数据验证功能
Inheritance: BindableBase, IDataErrorInfo
Mostra file Open project: KINGGUOKUN/Account

Public Methods

Method Description
this ( string columnName ) : string

IDataErrorInfo成员,索引验证错误内容

Protected Methods

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

给指定属性添加指定验证错误

RemoveError ( string propertyName ) : void

移除指定属性的验证错误

Private Methods

Method Description
OnErrorsChanged ( string propertyName ) : void

引发验证错误变化事件

Method Details

AddError() protected method

给指定属性添加指定验证错误
protected AddError ( string propertyName, string error ) : void
propertyName string
error string
return void

RemoveError() protected method

移除指定属性的验证错误
protected RemoveError ( string propertyName ) : void
propertyName string
return void

this() public method

IDataErrorInfo成员,索引验证错误内容
public this ( string columnName ) : string
columnName string
return string