コード例 #1
0
        private async Task SetCounter()
        {
            await _counterService.CalculateCounter(applicationDefconStatus);

            itemsCounter1.SetBackgroundColor(_counterService.Counter1Color);
            itemsCounter2.SetBackgroundColor(_counterService.Counter2Color);
            itemsCounter3.SetBackgroundColor(_counterService.Counter3Color);
            itemsCounter4.SetBackgroundColor(_counterService.Counter4Color);
            itemsCounter5.SetBackgroundColor(_counterService.Counter5Color);

            itemsCounter1.Text = _counterService.Counter1Value.ToString();
            itemsCounter2.Text = _counterService.Counter2Value.ToString();
            itemsCounter3.Text = _counterService.Counter3Value.ToString();
            itemsCounter4.Text = _counterService.Counter4Value.ToString();
            itemsCounter5.Text = _counterService.Counter5Value.ToString();
        }