Exemplo n.º 1
0
        private async void MobSearch_Load(object sender, EventArgs e)
        {
            if (_allData == null || !_allData.Any())
            {
                var loading = new LoadingForm
                {
                    ProgressText = { Text = @"Loading: Mobs" }
                };
                loading.Show();

                _allData = await _mobService.GetMobs();

                loading.Close();
            }

            GetPage();
        }
Exemplo n.º 2
0
        private async void LootTemplateControl_VisibleChanged(object sender, EventArgs e)
        {
            if (!Visible)
            {
                return;
            }

            var loading = new LoadingForm
            {
                ProgressText = { Text = @"Loading: Mobs" }
            };

            loading.Show();

            BindingService.ToggleEnabled(this);
            _items = await _itemService.GetItems();

            _mobs = await _mobService.GetMobs();

            BindingService.ToggleEnabled(this);

            loading.Close();
        }