Exemplo n.º 1
0
        void OnAppearing(object sender, EventArgs args)
        {
            CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState();

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

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

            CoffeeDeviceState coffeeDevice = Logic.GetCoffeeDeviceState();

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