C# 클래스 EventManagerPro.Models.BaseModel

This class is used to provide functionality to each Model class without the need to replicate code.
상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: sagittaros/EventManagerModel

보호된 프로퍼티들

프로퍼티 타입 설명
_errors List>.Dictionary

공개 메소드들

메소드 설명
AddError ( string propertyName, string error, bool isWarning ) : void

Adds the specified error to the errors collection if it is not already present.

NotifyPropertyChanged ( string propertyName ) : void
RemoveError ( string propertyName, string error ) : void

Removes the specified error from the errors collection if it is present.

메소드 상세

AddError() 공개 메소드

Adds the specified error to the errors collection if it is not already present.
public AddError ( string propertyName, string error, bool isWarning ) : void
propertyName string Property name
error string Error message
isWarning bool Inserts error in the first position if false.
리턴 void

NotifyPropertyChanged() 공개 메소드

public NotifyPropertyChanged ( string propertyName ) : void
propertyName string
리턴 void

RemoveError() 공개 메소드

Removes the specified error from the errors collection if it is present.
public RemoveError ( string propertyName, string error ) : void
propertyName string Property name
error string Error message
리턴 void

프로퍼티 상세

_errors 보호되어 있는 프로퍼티

protected Dictionary> _errors
리턴 List>.Dictionary