void OnAppearing(object sender, EventArgs args) { CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState(); Coffee.Value = coffeeDevice.currentCoffeeAmount; Water.Value = coffeeDevice.currentWaterAmount; Milk.Value = coffeeDevice.currentMilkAmount; }
protected override void OnAppearing() { CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState(); Coffee.Value = coffeeDevice.currentCoffeeAmount; Water.Value = coffeeDevice.currentWaterAmount; Milk.Value = coffeeDevice.currentMilkAmount; }
public CoffeeMachineDetails() { InitializeComponent(); CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState(); Coffee.Value = coffeeDevice.currentCoffeeAmount; Water.Value = coffeeDevice.currentWaterAmount; Milk.Value = coffeeDevice.currentMilkAmount; }