Beispiel #1
0
        void OnAppearing(object sender, EventArgs args)
        {
            CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState();

            Coffee.Value = coffeeDevice.currentCoffeeAmount;
            Water.Value  = coffeeDevice.currentWaterAmount;
            Milk.Value   = coffeeDevice.currentMilkAmount;
        }
Beispiel #2
0
        protected override void OnAppearing()
        {
            CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState();

            Coffee.Value = coffeeDevice.currentCoffeeAmount;
            Water.Value  = coffeeDevice.currentWaterAmount;
            Milk.Value   = coffeeDevice.currentMilkAmount;
        }
Beispiel #3
0
        public CoffeeMachineDetails()
        {
            InitializeComponent();

            CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState();

            Coffee.Value = coffeeDevice.currentCoffeeAmount;
            Water.Value  = coffeeDevice.currentWaterAmount;
            Milk.Value   = coffeeDevice.currentMilkAmount;
        }