private void LoadTree() { figureTree.Nodes.Clear(); if (figures != null) { foreach (Lineset ls in figures.lines) { TreeNode parent = figureTree.Nodes.Add(Constellations.FullName(ls.Name)); parent.Tag = ls; foreach (Linepoint pnt in ls.Points) { TreeNode child = parent.Nodes.Add(pnt.ToString()); child.Tag = pnt; child.Checked = pnt.PointType != PointType.Move; } } } initialized = true; }
private void UpdateTargetInfo() { if (target != null) { this.constellationName.Text = Language.GetLocalizedText(280, "in ") + Constellations.FullName(target.Constellation); if (target.Magnitude != 0) { this.magnitudeValue.Text = target.Magnitude.ToString(); } else { this.magnitudeValue.Text = Language.GetLocalizedText(281, "n/a"); } this.thumbnail.Image = target.ThumbNail; this.classificationText.Text = FriendlyName(target.Classification.ToString()); if (target.Classification == Classification.Unidentified && target.StudyImageset != null) { if (target.StudyImageset.Projection == ProjectionType.Toast || target.StudyImageset.Projection == ProjectionType.Equirectangular || target.StudyImageset.Projection == ProjectionType.Mercator) { this.thumbnail.Image = UiTools.LoadThumbnailFromWeb(target.StudyImageset.ThumbnailUrl); switch (target.StudyImageset.DataSetType) { case ImageSetType.Earth: this.classificationText.Text = Language.GetLocalizedText(282, "Survey Imagery"); this.constellationName.Text = Language.GetLocalizedText(283, "of Earth"); break; case ImageSetType.Planet: this.classificationText.Text = Language.GetLocalizedText(282, "Survey Imagery"); this.constellationName.Text = Language.GetLocalizedText(284, "of Planet/Moon"); break; case ImageSetType.Sky: this.classificationText.Text = Language.GetLocalizedText(282, "Survey Imagery"); this.constellationName.Text = Language.GetLocalizedText(285, "for Full Sky"); break; case ImageSetType.Panorama: this.classificationText.Text = Language.GetLocalizedText(286, "Panorama"); this.constellationName.Text = ""; break; default: break; } this.raLabel.Visible = false; this.raText.Visible = false; this.decText.Visible = false; this.decLabel.Visible = false; this.distanceLabel.Visible = false; this.altText.Visible = false; this.azText.Visible = false; this.magnitudeLabel.Visible = false; this.magnitudeValue.Visible = false; this.distanceValue.Visible = false; this.altLabel.Visible = false; this.azLabel.Visible = false; this.riseText.Visible = false; this.riseLabel.Visible = false; this.setLabel.Visible = false; this.setText.Visible = false; this.transitLabel.Visible = false; this.transitText.Visible = false; this.creditsText.Top = altText.Top + 4; this.creditsText.Height = 106; this.creditsLink.Top = decText.Top + 2; this.imageCreditsText.Top = raText.Top; this.research.Visible = false; this.ShowObject.Visible = false; } else { this.classificationText.Text = Language.GetLocalizedText(287, "Study Imagery"); } } if (Earth3d.TouchKiosk) { research.Visible = false; } if (target.StudyImageset != null) { ShowImageCredits(target.StudyImageset); } else if (target.BackgroundImageSet != null) { ShowImageCredits(target.BackgroundImageSet); } else { ShowImageCredits(Earth3d.MainWindow.CurrentImageSet); } bool first = true; nameValues.Text = ""; foreach (string name in target.Names) { if (!first) { nameValues.Text += "; "; } first = false; nameValues.Text += name; } nameValues.Select(); UpdateLiveValues(); } }