C# Class ViewModels.SimpleListVM

This view model demonstrates simple CRUD operation on a list. This example is not bandwidth-optimized to show that we can implement this without writing any javascript at all. See BetterListVM for the example where we optimize the bandwidth usage by writing a little bit of javascript.
Inheritance: BaseVM
Exibir arquivo Open project: dsuryd/dotNetify

Public Methods

Method Description
Employees_get ( string iKey ) : EmployeeInfo

By convention, when VMController receives a property path that specifies an item in a list, it will look for a method that starts with the name in the path, in this case 'Employees' with a '_get' suffix, in order to access an item in that list, and then to use the returned object to set the updated value.

SimpleListVM ( EmployeeModel model ) : System.Collections.Generic

Constructor.

Private Methods

Method Description
Employee_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

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

Method Details

Employees_get() public method

By convention, when VMController receives a property path that specifies an item in a list, it will look for a method that starts with the name in the path, in this case 'Employees' with a '_get' suffix, in order to access an item in that list, and then to use the returned object to set the updated value.
public Employees_get ( string iKey ) : EmployeeInfo
iKey string List item key.
return EmployeeInfo

SimpleListVM() public method

Constructor.
public SimpleListVM ( EmployeeModel model ) : System.Collections.Generic
model EmployeeModel Employee model.
return System.Collections.Generic