public LayerStateManager(IMSCatalog catalog, IMap layerObj, TreeViewItem item, Image treeNodeImg,
                          LayerTreeNodeType layerTreeNodeType = LayerTreeNodeType.ChildLayer, LayerState layerState = LayerState.Visible)
 {
     if (item != null && treeNodeImg != null)
     {
         this.m_layerState    = layerState;
         this.m_layerStateOld = layerState;
         m_catalog            = catalog;
         m_layerObj           = layerObj;
         if (m_layerObj is VectorLayer)
         {
             m_layerType = LayerType.VectorLayer;
         }
         else if (m_layerObj is VectorMapDoc)
         {
             m_layerType = LayerType.VectorMapDoc;
         }
         m_treeViewItem      = item;
         m_treeNodeImg       = treeNodeImg;
         m_layerTreeNodeType = layerTreeNodeType;
         //m_treeNodeImg.MouseLeftButtonDown += new MouseButtonEventHandler(OnMouseLeftButtonDown);
         //m_treeNodeImg.MouseLeftButtonUp += new MouseButtonEventHandler(OnMouseLeftButtonUp);
         m_treeNodeImg.Source = StateBitmapList[(int)m_layerState];
         if (m_treeNodeImg.Tag is RadioButton && layerTreeNodeType == LayerTreeNodeType.ChildLayer)
         {
             (m_treeNodeImg.Tag as RadioButton).Click += new RoutedEventHandler(RadioButton_Click);
         }
     }
 }
Example #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ZDIMSDemo;component/SearchDemo.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.toolbar1       = ((ZDIMSDemo.Controls.Toolbar)(this.FindName("toolbar1")));
     this.leftPanel      = ((System.Windows.Controls.Border)(this.FindName("leftPanel")));
     this.expand         = ((System.Windows.Controls.Image)(this.FindName("expand")));
     this.collapse       = ((System.Windows.Controls.Image)(this.FindName("collapse")));
     this.leftMenuPanel  = ((System.Windows.Controls.Grid)(this.FindName("leftMenuPanel")));
     this.iMSCatalog1    = ((ZDIMSDemo.Controls.IMSCatalog)(this.FindName("iMSCatalog1")));
     this.rightPanel     = ((System.Windows.Controls.Border)(this.FindName("rightPanel")));
     this.iMSMap1        = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMap1")));
     this.tileLayer1     = ((ZDIMS.Map.TileLayer)(this.FindName("tileLayer1")));
     this.iMSEagleEye1   = ((ZDIMS.Map.IMSEagleEye)(this.FindName("iMSEagleEye1")));
     this.vectorMapDoc2  = ((ZDIMS.Map.VectorMapDoc)(this.FindName("vectorMapDoc2")));
     this.vectorLayer1   = ((ZDIMS.Map.VectorLayer)(this.FindName("vectorLayer1")));
     this.gDBItem1       = ((ZDIMS.Map.GDBItem)(this.FindName("gDBItem1")));
     this.layerItem1     = ((ZDIMS.Map.LayerItem)(this.FindName("layerItem1")));
     this.layerItem2     = ((ZDIMS.Map.LayerItem)(this.FindName("layerItem2")));
     this.layerItem3     = ((ZDIMS.Map.LayerItem)(this.FindName("layerItem3")));
     this.graphicsLayer1 = ((ZDIMS.Drawing.GraphicsLayer)(this.FindName("graphicsLayer1")));
     this.markLayer1     = ((ZDIMS.Drawing.MarkLayer)(this.FindName("markLayer1")));
     this.markLayer2     = ((ZDIMS.Drawing.MarkLayer)(this.FindName("markLayer2")));
     this.hideMenu       = ((System.Windows.Media.Animation.Storyboard)(this.FindName("hideMenu")));
     this.showMenu       = ((System.Windows.Media.Animation.Storyboard)(this.FindName("showMenu")));
 }
 /**
  * 查看图层属性记录回调函数
  */
 public void showLayer()
 {
     if (this.m_layerDataViewer == null)
     {
         MessageBox.Show("layerDataViewer属性为空!请创建LayerDataViewer控件!");
         return;
     }
     this.m_layerDataViewer.IMSCatalog = m_catalog;
     this.m_layerDataViewer.ShowLayerAttRecord(this._bufferRltLayerName, XClsType.SFeatureCls, m_vectorBase.ServerAddress);
 }
Example #4
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/ZDIMSDemo/Controls/FloatTreeView.xaml", System.UriKind.Relative));
     this.baseCtr   = ((ZDIMSDemo.Controls.BaseUserControl)(this.FindName("baseCtr")));
     this.diapnl    = ((EasySL.Controls.DialogPanel)(this.FindName("diapnl")));
     this.MapTree   = ((ZDIMSDemo.Controls.IMSCatalog)(this.FindName("MapTree")));
     this.showFade1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("showFade1")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/Demo/MapCatalog.xaml", System.UriKind.Relative));
     this.LayoutRoot    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.iMSMapCatag   = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMapCatag")));
     this.vectorMapDoc1 = ((ZDIMS.Map.VectorMapDoc)(this.FindName("vectorMapDoc1")));
     this.cwin          = ((System.Windows.Controls.ChildWindow)(this.FindName("cwin")));
     this.iMSCatalog1   = ((ZDIMSDemo.Controls.IMSCatalog)(this.FindName("iMSCatalog1")));
     this.img           = ((System.Windows.Controls.Canvas)(this.FindName("img")));
 }
Example #6
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/Demo/ClipAnalyse.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.iMSMap1      = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMap1")));
     this.tileLayer1   = ((ZDIMS.Map.TileLayer)(this.FindName("tileLayer1")));
     this.mapDoc       = ((ZDIMS.Map.VectorMapDoc)(this.FindName("mapDoc")));
     this.bufferButton = ((System.Windows.Controls.Button)(this.FindName("bufferButton")));
     this.clearBuf     = ((System.Windows.Controls.Button)(this.FindName("clearBuf")));
     this.iMSCatalog1  = ((ZDIMSDemo.Controls.IMSCatalog)(this.FindName("iMSCatalog1")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ZDIMSDemo;component/Sample.xaml", System.UriKind.Relative));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.toolbarByMapDoc1 = ((ZDIMSDemo.Controls.MapDoc.ToolbarByMapDoc)(this.FindName("toolbarByMapDoc1")));
     this.toolbarByLayer1  = ((ZDIMSDemo.Controls.Layer.ToolbarByLayer)(this.FindName("toolbarByLayer1")));
     this.iMSMap1          = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMap1")));
     this.tileLayer1       = ((ZDIMS.Map.TileLayer)(this.FindName("tileLayer1")));
     this.iMSEagleEye1     = ((ZDIMS.Map.IMSEagleEye)(this.FindName("iMSEagleEye1")));
     this.vectorMapDoc1    = ((ZDIMS.Map.VectorMapDoc)(this.FindName("vectorMapDoc1")));
     this.vectorLayer1     = ((ZDIMS.Map.VectorLayer)(this.FindName("vectorLayer1")));
     this.gDBItem1         = ((ZDIMS.Map.GDBItem)(this.FindName("gDBItem1")));
     this.layerItem1       = ((ZDIMS.Map.LayerItem)(this.FindName("layerItem1")));
     this.layerItem2       = ((ZDIMS.Map.LayerItem)(this.FindName("layerItem2")));
     this.layerItem3       = ((ZDIMS.Map.LayerItem)(this.FindName("layerItem3")));
     this.graphicsLayer1   = ((ZDIMS.Drawing.GraphicsLayer)(this.FindName("graphicsLayer1")));
     this.iMSCatalog1      = ((ZDIMSDemo.Controls.IMSCatalog)(this.FindName("iMSCatalog1")));
 }