private void contextResults_ItemClicked(object sender, Object e) { IPlace place = e as IPlace; if (place != null) { Place p = e as Place; if (p != null && p.Tour != null) { FolderBrowser.LaunchTour(p.Tour); return; } if (!string.IsNullOrEmpty(((IPlace)e).Url)) { WebWindow.OpenUrl(((IPlace)e).Url, false); } else { Earth3d.MainWindow.GotoTarget((IPlace)e, false, false, true); } } else if (e is IImageSet) { Earth3d.MainWindow.CurrentImageSet = e as IImageSet; } }
private void relatedTours_ItemClicked(object sender, object e) { if (e is Tour) { FolderBrowser.LaunchTour((Tour)e); DialogResult = DialogResult.Yes; this.Close(); } }
private void searchResults_ItemClicked(object sender, Object e) { if (e is Place) { Place p = (Place)e; if (p.Tour != null) { FolderBrowser.LaunchTour(p.Tour); return; } } Earth3d.MainWindow.GotoTarget((IPlace)e, false, false, true); }