Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
CoffeeConsumableManagerUI.xaml.cs
Go to the documentation of this file.
1using System.Windows.Controls;
2using System.Windows.Media;
4
6{
10 public partial class CoffeeConsumableManagerUI : UserControl, IConsumableManagerToolbox<CoffeeConsumableManager>
11 {
13 {
14 InitializeComponent();
15 NavBarIcon = (ImageSource)Resources["CoffeeMachineBitmapImage"];
16 }
17
21 public CoffeeConsumableManager Manager { set => DataContext = new CoffeeConsumableViewModel(value);
22 }
23
24 public string DisplayName => "Coffee Machine";
25 public ImageSource NavBarIcon { get; }
26 }
27}
Foundation of a consumable management system. Not yet really utilized in Chronos itself,...
Classes for managing consumables of our imagined coffee machine.
Keeps track of all consumables that are associated to our mock coffee machine.
string DisplayName
Name to show in the navigation bar.
ImageSource NavBarIcon
Provide some image for the user that can be displayed in the navigation bar.
CoffeeConsumableManager Manager
We don't want a 1:1 display of the pools and puddles, but a re-arranged model grouped by related devi...
View model for coffee machine related consumables.