|
Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
View model for coffee machine related consumables. More...
Public Member Functions | |
| CoffeeConsumableViewModel () | |
| For the XAML Designer. | |
| CoffeeConsumableViewModel (CoffeeConsumableManager value) | |
Properties | |
| ObservableCollection< IngredientsForDevice > | Ingredients = new ObservableCollection<IngredientsForDevice>() [get] |
Private Member Functions | |
| void | RebuildLists (object sender, NotifyCollectionChangedEventArgs e) |
Private Attributes | |
| readonly CoffeeConsumableManager | mManager |
View model for coffee machine related consumables.
This is a bit more complicated than strictly necessary. The idea is to show that you don't have to follow the predefined model of consumables pools/puddles strictly. In this case the consumabels get re-arranged and ordered by device by the view model.
Definition at line 14 of file CoffeeConsumableViewModel.cs.
| MockPlugin.Consumables.CoffeeConsumableViewModel.CoffeeConsumableViewModel | ( | ) |
For the XAML Designer.
Definition at line 22 of file CoffeeConsumableViewModel.cs.
| MockPlugin.Consumables.CoffeeConsumableViewModel.CoffeeConsumableViewModel | ( | CoffeeConsumableManager | value | ) |
Definition at line 27 of file CoffeeConsumableViewModel.cs.
References mManager, and RebuildLists().
|
private |
Definition at line 37 of file CoffeeConsumableViewModel.cs.
References Ingredients, and mManager.
Referenced by CoffeeConsumableViewModel().
|
private |
Definition at line 16 of file CoffeeConsumableViewModel.cs.
Referenced by CoffeeConsumableViewModel(), and RebuildLists().
|
get |
Definition at line 52 of file CoffeeConsumableViewModel.cs.
Referenced by RebuildLists().