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;
            }
        }
示例#2
0
 private void relatedTours_ItemClicked(object sender, object e)
 {
     if (e is Tour)
     {
         FolderBrowser.LaunchTour((Tour)e);
         DialogResult = DialogResult.Yes;
         this.Close();
     }
 }
示例#3
0
        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);
        }