コード例 #1
0
        public ObservableCollection <WizardPage> GetWizardPages()
        {
            if (selectEditableLayers == null)
            {
                SelectLayers selectLayers = new SelectLayers();
                selectLayers.DataContext = Configuration;
                selectEditableLayers     = new WizardPage()
                {
                    Content    = selectLayers,
                    Heading    = ESRI.ArcGIS.Mapping.Controls.Editor.Resources.Strings.SelectLayersHeader,
                    InputValid = true
                };
            }

            if (editorOptions == null)
            {
                EditorOptions options = new EditorOptions();
                options.DataContext = Configuration;
                editorOptions       = new WizardPage()
                {
                    Content    = options,
                    Heading    = ESRI.ArcGIS.Mapping.Controls.Editor.Resources.Strings.EditorOptionsHeader,
                    InputValid = true
                };
            }

            // Add pages to wizard
            ObservableCollection <WizardPage> pages = new ObservableCollection <WizardPage>();

            pages.Add(selectEditableLayers);
            pages.Add(editorOptions);
            return(pages);
        }
コード例 #2
0
        public ObservableCollection<WizardPage> GetWizardPages()
        {
            if (selectEditableLayers == null)
            {
                SelectLayers selectLayers = new SelectLayers();
                selectLayers.DataContext = Configuration;
                selectEditableLayers = new WizardPage()
                {
                    Content = selectLayers,
                    Heading = ESRI.ArcGIS.Mapping.Controls.Editor.Resources.Strings.SelectLayersHeader,
                    InputValid = true
                };
            }

            if (editorOptions == null)
            {
                EditorOptions options = new EditorOptions();
                options.DataContext = Configuration;
                editorOptions = new WizardPage()
                {
                    Content = options,
                    Heading = ESRI.ArcGIS.Mapping.Controls.Editor.Resources.Strings.EditorOptionsHeader,
                    InputValid = true
                };
            }

            // Add pages to wizard
            ObservableCollection<WizardPage> pages = new ObservableCollection<WizardPage>();
            pages.Add(selectEditableLayers);
            pages.Add(editorOptions);
            return pages;
        }