Esempio n. 1
0
        private void newSlideBasedTour(object sender, EventArgs e)
        {
            if (!CloseOpenToursOrAbort(false))
            {
                return;
            }
            TourDocument tour = new TourDocument();
            TourProperties tourProps = new TourProperties();
            tourProps.EditTour = tour;
            if (tourProps.ShowDialog() == DialogResult.OK)
            {
                tour.EditMode = true;
                this.menuTabs.AddTour(tour);
                this.menuTabs.FocusTour(tour);
                Undo.Clear();
            }

        }
Esempio n. 2
0
 private void OpenTourProperties()
 {
     if (tourEdit == null || tourEdit.Tour == null)
     {
         MessageBox.Show(Language.GetLocalizedText(-1, "There was a problem loading the tour..."));
     }
     else
     {
         if (string.IsNullOrEmpty(tourEdit.Tour.Author) ||
             string.IsNullOrEmpty(tourEdit.Tour.AuthorEmail) ||
             string.IsNullOrEmpty(tourEdit.Tour.Description) ||
             tourEdit.Tour.AuthorImage == null)
         {
             TourProperties tourProps = new TourProperties();
             tourProps.EditTour = tourEdit.Tour;
             tourProps.Strict = tourProps.highlightNeeded = tourProps.authorImageNeeded = true;
             tourProps.highlightReqFields();
             if (tourProps.ShowDialog() == DialogResult.OK)
             {
                 Earth3d.MainWindow.Refresh();
             }
         }
         else
         {
             if (tourEdit.Tour.TourStops.Count == 0)
             {
                 MessageBox.Show(Language.GetLocalizedText(-1, "Tour must have stops..."));
             }
         }
     }
 }
Esempio n. 3
0
 private void EditTourProperties_Click(object sender, EventArgs e)
 {
     var tourProps = new TourProperties();
     tourProps.EditTour = tour;
     if (tourProps.ShowDialog() == DialogResult.OK)
     {
         Earth3d.MainWindow.Refresh();
     }
 }