コード例 #1
0
        public esriTOCControl(IDsApplication hook)
        {
            InitializeComponent();
            m_app = hook;

            InitializeTOCSettings();
            InitializeTOCControlEvents();
        }
コード例 #2
0
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app = hook;

            base.PluginPanel = new UCMapQueryByAttr();

            (base.PluginPanel as UCMapQueryByAttr).cbLayers.Items.Add(DateTime.Now.ToString());
        }
コード例 #3
0
        public esriMapControl(IDsApplication hook)
        {
            InitializeComponent();
            m_app            = hook;
            m_app.MapControl = mapCtrl;

            InitializeMapControlEvents();
            InitializeNavBar();
        }
コード例 #4
0
        public void InitializeControls(IDsApplication hook)
        {
            m_app        = hook;
            m_mapCtrl    = new esriMapControl(hook);
            m_legendCtrl = new esriTOCControl(hook);

            AxMapControl axMapCtrl = (m_mapCtrl as esriMapControl).mapCtrl;
            AxTOCControl axTocCtrl = (m_legendCtrl as esriTOCControl).tocCtrl;

            axTocCtrl.SetBuddyControl(axMapCtrl);
        }
コード例 #5
0
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app             = hook;
            base.Caption           = "地图缩小";
            base.Category          = "视图操作";
            base.Message           = "当前工具:地图缩小";
            base.Tooltip           = "地图缩小";
            base.Name              = "MapZoomOut";
            base.Checked           = false;
            base.Deactivate        = false;
            base.Enabled           = true;
            base.m_bitmapNameSmall = "MapZoomOut_16.ico";

            base.LoadSmallBitmap();
        }
コード例 #6
0
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app             = hook;
            base.Caption           = "全图";
            base.Category          = "视图操作";
            base.Message           = "";
            base.Tooltip           = "全图";
            base.Name              = "MapFullExtent";
            base.Checked           = false;
            base.Enabled           = true;
            base.m_bitmapNameSmall = "MapFullExtent_16.ico";
            base.m_bitmapNameLarge = "MapFullExtent_32.ico";

            base.LoadSmallBitmap();
            base.LoadLargeBitmap();
        }
コード例 #7
0
ファイル: AddFileGDBData.cs プロジェクト: koson/CodeLab
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app             = hook;
            base.Caption           = "加载文件地理数据库";
            base.Category          = "加载数据";
            base.Message           = "";
            base.Tooltip           = "加载文件地理数据库";
            base.Name              = "AddFileGDBData";
            base.Checked           = false;
            base.Enabled           = true;
            base.m_bitmapNameSmall = "AddFileGDBData_16.png";
            base.m_bitmapNameLarge = "AddFileGDBData_32.png";

            base.LoadSmallBitmap();
            base.LoadLargeBitmap();
        }
コード例 #8
0
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app             = hook;
            base.Caption           = "信息查看";
            base.Category          = "地图查询";
            base.Message           = "当前工具:信息查看";
            base.Tooltip           = "信息查看";
            base.Name              = "Identify";
            base.Checked           = false;
            base.Deactivate        = false;
            base.Enabled           = true;
            base.m_bitmapNameSmall = "Identify_16.ico";

            base.LoadLargeBitmap();
            base.LoadSmallBitmap();
        }
コード例 #9
0
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app             = hook;
            base.Caption           = "全图显示";
            base.Category          = "视图操作";
            base.Message           = "当前工具:全图显示";
            base.Tooltip           = "全图显示";
            base.Name              = "EsriMapFullExtent";
            base.Checked           = false;
            base.Enabled           = true;
            base.m_bitmapNameSmall = "EsriMapFullExtent_16.png";
            base.m_bitmapNameLarge = "EsriMapFullExtent_32.png";

            base.LoadSmallBitmap();
            base.LoadLargeBitmap();

            if (hook.MapControl is AxMapControl)
            {
                m_mapCtrl = (hook.MapControl as AxMapControl).Object as IMapControlDefault;
            }
        }
コード例 #10
0
ファイル: EsriMapIdentify.cs プロジェクト: koson/CodeLab
        public override void OnCreate(IDsApplication hook)
        {
            base.m_app             = hook;
            base.Caption           = "信息查看";
            base.Category          = "地图查询";
            base.Message           = "当前工具:信息查看";
            base.Tooltip           = "信息查看";
            base.Name              = "EsriMapIdentify";
            base.Checked           = false;
            base.Deactivate        = false;
            base.Enabled           = true;
            base.m_bitmapNameSmall = "EsriMapIdentify_16.png";
            base.m_bitmapNameLarge = "EsriMapIdentify_32.png";

            base.LoadSmallBitmap();
            base.LoadLargeBitmap();

            if (hook.MapControl is AxMapControl)
            {
                m_mapCtrl = (hook.MapControl as AxMapControl).Object as IMapControlDefault;
            }
        }
コード例 #11
0
 /// <summary>
 /// 创建时触发的方法
 /// </summary>
 /// <param name="hook">主应用程序对象</param>
 public abstract void OnCreate(IDsApplication hook);
コード例 #12
0
 public override void OnCreate(IDsApplication hook)
 {
     base.m_app = hook;
 }
コード例 #13
0
 public override void OnCreate(IDsApplication hook)
 {
     base.m_app       = hook;
     base.PluginPanel = new esriMapQueryUC(m_app);
 }
コード例 #14
0
 /// <summary>
 /// 初始化系统设置
 /// </summary>
 private void InitializeSystemSettinigs()
 {
     App.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
     m_application            = new DsApplication();
 }
コード例 #15
0
ファイル: esriMapQueryUC.xaml.cs プロジェクト: koson/CodeLab
 public esriMapQueryUC(IDsApplication hook)
 {
     InitializeComponent();
     m_app = hook;
 }