Exemple #1
0
        public Toolbar()
        {
            InitializeComponent();
            MapDocEditor = new MapDocEditor(m_catalog)
            {
                IsPopup = true
            };
            m_mapDocDataViewer = new MapDocDataViewer()
            {
                IsPopup = true
            };                                                            //, MapDocEditorObj = MapDocEditor };
            m_mapDocConditionInput = new ConditionInput(m_mapDocDataViewer)
            {
                IsPopup = true
            };
            this.BorderThickness = new Thickness(0);

            LayerEditor = new LayerEditor(m_catalog)
            {
                IsPopup = true
            };
            m_layerDataViewer = new LayerDataViewer()
            {
                IsPopup = true
            };                                                          //, LayerEditorObj = LayerEditor };
            m_layerConditionInput = new LayerConditionInput(m_layerDataViewer)
            {
                IsPopup = true
            };
        }
Exemple #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MapgisToolSubMenu()
 {
     MapDocEditor = new MapDocEditor(catalog)
     {
         IsPopup = true
     };
     mapDocDataViewer = new MapDocDataViewer()
     {
         IsPopup = true
     };
     mapDocConditionInput = new ConditionInput(mapDocDataViewer)
     {
         IsPopup = true
     };
     this.Loaded += new RoutedEventHandler(OnLoaded);
     LayerEditor  = new LayerEditor(catalog)
     {
         IsPopup = true
     };
     layerDataViewer = new LayerDataViewer()
     {
         IsPopup = true
     };
     layerConditionInput = new LayerConditionInput(layerDataViewer)
     {
         IsPopup = true
     };
 }
        /// <summary>
        /// 构造函数
        /// </summary>
        public MapgisToolSubMenu()
        {
            InitializeComponent();
            fishMenu = new FishEyeMenuH();
            this.ResizeControl();
            this.LayoutRoot.Children.Add(fishMenu);
            this.Loaded += new RoutedEventHandler(OnLoaded);
            MapDocEditor = new MapDocEditor(catalog)
            {
                IsPopup = true
            };
            mapDocDataViewer = new MapDocDataViewer()
            {
                IsPopup = true
            };                                                           //, MapDocEditorObj = MapDocEditor };
            mapDocConditionInput = new ConditionInput(mapDocDataViewer)
            {
                IsPopup = true
            };
            this.BorderThickness = new Thickness(0);

            LayerEditor = new LayerEditor(catalog)
            {
                IsPopup = true
            };
            layerDataViewer = new LayerDataViewer()
            {
                IsPopup = true
            };                                                         //, LayerEditorObj = LayerEditor };
            layerConditionInput = new LayerConditionInput(layerDataViewer)
            {
                IsPopup = true
            };
        }
Exemple #4
0
 void OnAddArea(GraphicsLayer gLayer, IGraphics graphics, List <Point> logPntArr)
 {
     if (m_catalog.ActiveMapDoc.Display)
     {
         MapDocEditor.AddArea(gLayer, graphics, logPntArr);
     }
     if (m_catalog.ActiveLayerObj.Display)
     {
         LayerEditor.AddArea(gLayer, graphics, logPntArr);
     }
 }
Exemple #5
0
 void OnAddArea(GraphicsLayer gLayer, IGraphics graphics, List <Point> logPntArr)
 {
     if (catalog.ActiveMapDoc == null)
     {
         MessageBox.Show("请激活一个矢量(文档)的图层!");
         return;
     }
     if (catalog.ActiveMapDoc.Display)
     {
         MapDocEditor.AddArea(gLayer, graphics, logPntArr);
     }
     if (catalog.ActiveLayerObj == null)
     {
         MessageBox.Show("请激活一个矢量图层!");
         return;
     }
     if (catalog.ActiveLayerObj.Display)
     {
         LayerEditor.AddArea(gLayer, graphics, logPntArr);
     }
 }