Method | Description | |
---|---|---|
CustomersViewModel ( ) : System | ||
Delete ( string indexArg ) : void |
Delete a customer from the collection. In a real application, this method would probably also delete the customer from persistent storage.
|
|
Filter ( ) : void |
Applies the current filter text against the collection. All this does is raise a PropertyChanged event, since the actual work of filtering is simply a byproduct of iterating through the collection.
|
|
LoadCustomers ( ) : void |
Pretends to load a collection of customers from persistent storage like a database or a web service. Since this sample doesn't do any real persistence, this method creates a random set of customers that look like they were loaded from storage.
|
Method | Description | |
---|---|---|
GetRandomItem ( string items ) : string | ||
GetRandomStreetName ( ) : string |