public override void Execute(object parameter)
        {
            // Get global instance of the getting started control and display it if getting started mode is not disabled
            TutorialDialogControl tdc = BuilderApplication.Instance.TutorialDialogControl;

            BuilderApplication.Instance.GettingStartedVisibility = tdc.IsTutorialDisabled == false ? Visibility.Visible : Visibility.Collapsed;

            CreateNewApplication(null);
        }
Ejemplo n.º 2
0
        public static void OnDisabledPropertyChange(DependencyObject o, DependencyPropertyChangedEventArgs args)
        {
            TutorialDialogControl control = o as TutorialDialogControl;

            control.isTutorialDisabled = control.IsTutorialDisabled;
            if (!control.IsTutorialDisabled)
            {
                BuilderApplication.Instance.GettingStartedVisibility = System.Windows.Visibility.Visible;
            }
        }
        private void PersonalSettings_Loaded(object sender, RoutedEventArgs e)
        {
            TutorialDialogControl tdc = BuilderApplication.Instance.TutorialDialogControl;

            if (tdc == null)
            {
                return;
            }
            TutorialMode.DataContext = tdc;
            TutorialMode.Content     = ESRI.ArcGIS.Mapping.Builder.Resources.Strings.TutorialModeDisable;
        }
Ejemplo n.º 4
0
        private void SiteEdit_Click(object sender, RoutedEventArgs e)
        {
            if (SiteOpened != null)
            {
                // Get global instance of the getting started control and display it if getting started mode is not disabled
                TutorialDialogControl tdc = BuilderApplication.Instance.TutorialDialogControl;
                BuilderApplication.Instance.GettingStartedVisibility = tdc.IsTutorialDisabled == false ? Visibility.Visible : Visibility.Collapsed;

                SiteOpened(this, new SiteOpenedEventArgs()
                {
                    Site = ((FrameworkElement)sender).DataContext as Site
                });
            }
        }
Ejemplo n.º 5
0
        private void ResetApplication()
        {
            // Remove all layers from the Map
            if (View.Instance != null)
            {
                View.Instance.Clear();
            }

            if (View != null)
            {
                View.ProxyUrl = View.DefaultProxyUrl;
                if (View.WindowManager != null)
                {
                    View.WindowManager.HideAllWindows();
                }
            }

            if (ViewerApplicationControl.Instance != null)
            {
                ViewerApplicationControl.Instance.ViewerApplication = null;
            }

            if (BuilderApplication.Instance != null)
            {
                if (BuilderApplication.Instance.WindowManager != null)
                {
                    BuilderApplication.Instance.WindowManager.HideAllWindows();
                }
                if (BuilderApplication.Instance.AddContentDialog != null)
                {
                    BuilderApplication.Instance.AddContentDialog.Reset();
                }
            }

            // Get global instance of the getting started control and display it if getting started mode is not disabled
            TutorialDialogControl tdc = BuilderApplication.Instance.TutorialDialogControl;

            BuilderApplication.Instance.GettingStartedVisibility = tdc.IsTutorialDisabled == false ? Visibility.Visible : Visibility.Collapsed;

            if (ParentDropDownButton != null)
            {
                ParentDropDownButton.IsContentPopupOpen = false;
            }

            BuilderApplication.Instance.BuilderScreenVisibility = System.Windows.Visibility.Collapsed;
            BuilderApplication.Instance.NewappScreenVisibility  = System.Windows.Visibility.Collapsed;
            BuilderApplication.Instance.CatalogScreenVisibility = System.Windows.Visibility.Visible;
        }