C# 클래스 ViewModels.BetterListVM

This view model demonstrates simple CRUD operation on a list. In this example, we optimize the bandwidth usage by writing a little bit of javascript (see SimpleList.js) to avoid refreshing the entire list every time an item is edited or removed like what the SimpleListVM example is doing.
상속: BaseVM
파일 보기 프로젝트 열기: dsuryd/dotNetify

공개 메소드들

메소드 설명
BetterListVM ( EmployeeModel model ) : System

Constructor.

Employees_get ( string iKey ) : EmployeeInfo

By convention, when VMController receives a list item from the client, it will look for the function that starts with the list property name and ends with "_get" to access the list item for the purpose of updating its value.

비공개 메소드들

메소드 설명
Employee_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Event handler that gets called when an employee info's property value changed.

메소드 상세

BetterListVM() 공개 메소드

Constructor.
public BetterListVM ( EmployeeModel model ) : System
model EmployeeModel Employee model.
리턴 System

Employees_get() 공개 메소드

By convention, when VMController receives a list item from the client, it will look for the function that starts with the list property name and ends with "_get" to access the list item for the purpose of updating its value.
public Employees_get ( string iKey ) : EmployeeInfo
iKey string List item key.
리턴 EmployeeInfo