public void StartingNewFolderLoad(Folder folder) { numLoadingFolders++; folder.ChildLoadCallback(delegate { Wtml.LoadImagesets(folder, this); FolderLoaded(); }); }
static void OnArtReady() { artFile.ChildLoadCallback(LoadArtList); }
private void HandleClick(int index) { if (index > -1) { if (items[index] is Place) { //Place place = (Place)items[index]; //if (place.BackgroundImageSet != null) //{ // WWTControl.Singleton.RenderContext.BackgroundImageset = place.BackgroundImageSet; //} //if (place.StudyImageset != null) //{ // // WWTControl.Singleton.RenderContext.ForegroundImageSet = place.StudyImageset; // WWTControl.Singleton.RenderContext.ForegroundImageset = place.StudyImageset; //} //if (!(place.Lat == 0 && place.Lng == 0)) //{ // WWTControl.Singleton.RenderContext.ViewCamera = place.CamParams; //} Place place = (Place)items[index]; WWTControl.Singleton.GotoTarget(place, false, false, true); return; } if (items[index] is Imageset) { Imageset imageset = (Imageset)items[index]; WWTControl.Singleton.RenderContext.BackgroundImageset = imageset; return; } if (items[index] is Tour) { Tour tour = (Tour)items[index]; WWTControl.Singleton.PlayTour(tour.TourUrl); return; } if (items[index] is Folder) { Folder folder = (Folder)items[index]; startIndex = 0; folder.ChildLoadCallback(delegate { items = folder.Children; Refresh(); }); return; } if (items[index] is FolderUp) { FolderUp folderUp = (FolderUp)items[index]; if (folderUp.Parent != null) { startIndex = 0; folderUp.Parent.ChildLoadCallback(delegate { items = folderUp.Parent.Children; Refresh(); }); } return; } } return; }