C# Class EducationsCourses.ViewModel.PersonsListViewModel

کلاس مربوط به مدیریت همه اشخاص
Inheritance: BaseViewModel
ファイルを表示 Open project: rabbal/WPFEducation_Management

Public Properties

Property Type Description
_repository EducationsCourses.Repository.PersonRepository

Public Methods

Method Description
PersonsListViewModel ( ) : EducationsCourses.Helpers

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

Protected Methods

Method Description
OnDispose ( ) : void

Private Methods

Method Description
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

Method Details

OnDispose() protected method

protected OnDispose ( ) : void
return void

PersonsListViewModel() public method

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

Property Details

_repository public_oe static_oe property

public static PersonRepository,EducationsCourses.Repository _repository
return EducationsCourses.Repository.PersonRepository