C# 클래스 EducationsCourses.ViewModel.PersonsListViewModel

کلاس مربوط به مدیریت همه اشخاص
상속: BaseViewModel
파일 보기 프로젝트 열기: rabbal/WPFEducation_Management

공개 프로퍼티들

프로퍼티 타입 설명
_repository EducationsCourses.Repository.PersonRepository

공개 메소드들

메소드 설명
PersonsListViewModel ( ) : EducationsCourses.Helpers

سازنده پیش فرض

보호된 메소드들

메소드 설명
OnDispose ( ) : void

비공개 메소드들

메소드 설명
CanDelete ( ) : bool
CanEdit ( ) : bool
Delete ( Person person ) : void
DoSearchByName ( string name ) : void

متدی برای کامند سرچ با نام

Edit ( Person person ) : void

متدی برای کامند ویرایش شخص

GetPersons ( string name, string property ) : void

متدی برای برگرداندن همه اشخاص

SearchByNationalCode ( string nationalCode ) : void
_repository_PersonAdded ( object sender, CustomEventArgs e ) : void
_repository_PersonDeleted ( object sender, CustomEventArgs e ) : void
_repository_PersonUpdated ( object sender, CustomEventArgs e ) : void

메소드 상세

OnDispose() 보호된 메소드

protected OnDispose ( ) : void
리턴 void

PersonsListViewModel() 공개 메소드

سازنده پیش فرض
public PersonsListViewModel ( ) : EducationsCourses.Helpers
리턴 EducationsCourses.Helpers

프로퍼티 상세

_repository 공개적으로 정적으로 프로퍼티

public static PersonRepository,EducationsCourses.Repository _repository
리턴 EducationsCourses.Repository.PersonRepository