Esempio n. 1
0
        public override void OnClick()
        {
            this.m_layer = (ILayer)this.m_mapControl.CustomProperty;
            switch (m_subType)
            {
            case 1:
                m_hookHelper.FocusMap.DeleteLayer(this.m_layer);
                break;

            case 2:
                this.m_mapControl.Extent = this.m_layer.AreaOfInterest;
                break;

            case 3:
                if (this.m_layer is IRasterLayer)
                {
                    return;
                }

                frmAttributeTable fmAttriTable = new frmAttributeTable(this.m_layer, this.m_mapControl as MapControl);
                fmAttriTable.ShowDialog();
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
        public override void OnClick()
        {
            this.m_layer = (ILayer)this.m_mapControl.CustomProperty;
            switch (m_subType)
            {
                case 1:
                    m_hookHelper.FocusMap.DeleteLayer(this.m_layer);
                    break;
                case 2:
                    this.m_mapControl.Extent = this.m_layer.AreaOfInterest;
                    break;
                case 3:
                    if (this.m_layer is IRasterLayer)
                    {
                        return;
                    }

                    frmAttributeTable fmAttriTable = new frmAttributeTable(this.m_layer,this.m_mapControl as MapControl);
                    fmAttriTable.ShowDialog();
                    break;
                default:
                    break;
            }
        }