private void OnCatalogMetadataDownloadComplete() { catalogSpreadSheetLayer.UseHeadersFromVoTable(catalogColumnInfo); catalogSpreadSheetLayer.Name = datasetName; catalogSpreadSheetLayer.ID = Guid.CreateFrom(datasetName); LayerManager.AddSpreadsheetLayer(CatalogSpreadSheetLayer, "Sky"); downloadComplete = true; if (onDownloadComplete != null) { onDownloadComplete.Invoke(); } }
public void AddCatalogHips(Imageset imageset, Action onLoad) { if (!activeCatalogHipsImagesets.Contains(imageset)) { activeCatalogHipsImagesets.Add(imageset); } if (imageset.HipsProperties == null) { imageset.HipsProperties = new HipsProperties(imageset); imageset.HipsProperties.SetDownloadCompleteListener(onLoad); } else if (imageset.HipsProperties != null && imageset.HipsProperties.DownloadComplete) { LayerManager.AddSpreadsheetLayer(imageset.HipsProperties.CatalogSpreadSheetLayer, "Sky"); if (onLoad != null) { onLoad.Invoke(); } } }