コード例 #1
0
        public async Task Refresh()
        {
            if (_internalLoadingArchives)
            {
                return;
            }
            _internalLoadingArchives = true;
            RefreshOnErrorButton     = false;
            ArchiveList.Clear();
            LoadingArchives = true;
            foreach (var b in Settings.Profile.Bookmarks)
            {
                var archive = Archives.GetArchive(b.archiveID);
                if (archive != null)
                {
                    Tabs.CloseTabWithId(archive.title);
                }
            }
            await Archives.ReloadArchives();

            LoadBookmarks();
            Page                     = 0;
            LoadingArchives          = false;
            _internalLoadingArchives = false;
        }
コード例 #2
0
        public void SetMap(Map map)
        {
            ArchiveList.Clear();
            if (map == null)
            {
                return;
            }

            for (int i = 0; i < map.Rooms.Count; i++)
            {
                ArchiveList.Add(map.Rooms[i]);
            }
            ArchiveList.Add(map.Stage);

            if (map.Rooms.Count > 0)
            {
                SelectedScene = map.Rooms[0];
            }
        }