Пример #1
0
        public async Task Initialize()
        {
            if (_pages.Count > 0)
            {
                _pages.Clear();
            }

            if (_featured.Count > 0)
            {
                _featured.Clear();
            }

            if (_bots.Count > 0)
            {
                _bots.Clear();
            }

            _pages = await _dao.ReadPagesAsync();

            await _dao.ReadItemsAsync(this);

            _featured = await _dao.ReadFeaturedAsync();

            _bots = await _dao.ReadBotsAsync();
        }