public esriTOCControl(IDsApplication hook) { InitializeComponent(); m_app = hook; InitializeTOCSettings(); InitializeTOCControlEvents(); }
public override void OnCreate(IDsApplication hook) { base.m_app = hook; base.PluginPanel = new UCMapQueryByAttr(); (base.PluginPanel as UCMapQueryByAttr).cbLayers.Items.Add(DateTime.Now.ToString()); }
public esriMapControl(IDsApplication hook) { InitializeComponent(); m_app = hook; m_app.MapControl = mapCtrl; InitializeMapControlEvents(); InitializeNavBar(); }
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); }
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(); }
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(); }
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(); }
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(); }
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; } }
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; } }
/// <summary> /// 创建时触发的方法 /// </summary> /// <param name="hook">主应用程序对象</param> public abstract void OnCreate(IDsApplication hook);
public override void OnCreate(IDsApplication hook) { base.m_app = hook; }
public override void OnCreate(IDsApplication hook) { base.m_app = hook; base.PluginPanel = new esriMapQueryUC(m_app); }
/// <summary> /// 初始化系统设置 /// </summary> private void InitializeSystemSettinigs() { App.Current.ShutdownMode = ShutdownMode.OnMainWindowClose; m_application = new DsApplication(); }
public esriMapQueryUC(IDsApplication hook) { InitializeComponent(); m_app = hook; }