Esempio n. 1
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     _AppHk = hook as Plugin.Application.IAppArcGISRef;
     _hook  = hook as Plugin.Application.AppGidUpdate;
 }
Esempio n. 2
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     m_Hook    = hook as Plugin.Application.IAppDBIntegraRef;
     m_AppUser = (m_Hook as Plugin.Application.IAppFormRef).ConnUser;
 }
Esempio n. 3
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     //m_Hook = hook as Plugin.Application.IAppGISRef;
     m_Hook2 = hook as Plugin.Application.IAppArcGISRef;
     if (m_Hook2.MapControl == null)
     {
         return;
     }
 }
Esempio n. 4
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     m_Hook    = hook as Plugin.Application.IAppGisUpdateRef;
     m_frmhook = hook as Plugin.Application.IAppFormRef;
 }
Esempio n. 5
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            m_Hook = hook as Plugin.Application.IAppGISRef;
            if (m_Hook == null)
            {
                return;
            }
            /////////////////初始化线型接边搜索表
            m_PolyLineSearchTable           = new DataTable();
            m_PolyLineSearchTable.TableName = "PolylineSearchTable";
            DataColumn dc1 = new DataColumn("数据集", Type.GetType("System.String"));
            //DataColumn dc1 = new DataColumn("数据集", Type.GetType("System.String"));
            DataColumn dc2 = new DataColumn("要素类型", Type.GetType("System.String"));
            //DataColumn dc2 = new DataColumn("要素类型", Type.GetType("System.String"));
            DataColumn dc3 = new DataColumn("源要素ID", Type.GetType("System.Int64"));

            //DataColumn dc3 = new DataColumn("源要素ID", Type.GetType("System.Int64"));
            dc3.DefaultValue = -1;
            DataColumn dc4 = new DataColumn("OriPtn", Type.GetType("System.String"));
            DataColumn dc5 = new DataColumn("目标要素ID", Type.GetType("System.Int64"));

            //DataColumn dc5 = new DataColumn("目标要素ID", Type.GetType("System.Int64"));
            dc5.DefaultValue = -1;
            DataColumn dc6 = new DataColumn("DesPtn", Type.GetType("System.String"));
            DataColumn dc7 = new DataColumn("接边状态", Type.GetType("System.String"));

            m_PolyLineSearchTable.Columns.Add(dc1);
            m_PolyLineSearchTable.Columns.Add(dc2);
            m_PolyLineSearchTable.Columns.Add(dc3);
            m_PolyLineSearchTable.Columns.Add(dc4);
            m_PolyLineSearchTable.Columns.Add(dc5);
            m_PolyLineSearchTable.Columns.Add(dc6);
            m_PolyLineSearchTable.Columns.Add(dc7);
            //////////////////////////////////////
            ////初始化多边形接边搜索表
            m_PolygonSearchTable           = new DataTable();
            m_PolygonSearchTable.TableName = "PolygonSearchTable";
            dc1 = new DataColumn("数据集", Type.GetType("System.String"));
            dc2 = new DataColumn("要素类型", Type.GetType("System.String"));
            dc3 = new DataColumn("源要素ID", Type.GetType("System.Int64"));
            dc3.DefaultValue = -1;
            dc4 = new DataColumn("OriLineIndex", Type.GetType("System.Int64"));
            dc4.DefaultValue = -1;
            dc5 = new DataColumn("目标要素ID", Type.GetType("System.Int64"));
            dc5.DefaultValue = -1;
            dc6 = new DataColumn("DesLineIndex", Type.GetType("System.Int64"));
            dc6.DefaultValue = -1;
            dc7 = new DataColumn("接边状态", Type.GetType("System.String"));
            m_PolygonSearchTable.Columns.Add(dc1);
            m_PolygonSearchTable.Columns.Add(dc2);
            m_PolygonSearchTable.Columns.Add(dc3);
            m_PolygonSearchTable.Columns.Add(dc4);
            m_PolygonSearchTable.Columns.Add(dc5);
            m_PolygonSearchTable.Columns.Add(dc6);
            m_PolygonSearchTable.Columns.Add(dc7);
            ////////////////////////////////////////////////////
        }
Esempio n. 6
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     m_Hook = hook as Plugin.Application.IAppPrivilegesRef;
     _hook  = hook as Plugin.Application.IAppFormRef;
 }
Esempio n. 7
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     m_Hook = hook as Plugin.Application.IAppGISRef;
     m_Hook.ArcGisMapControl.OnKeyDown += new IMapControlEvents2_Ax_OnKeyDownEventHandler(ArcGisMapControl_OnKeyDown);
 }
Esempio n. 8
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;

            m_pCommand.OnCreate(_AppHk.MapControl);
        }
Esempio n. 9
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;

            Plugin.Application.IAppFormRef pAppForm = hook as Plugin.Application.IAppFormRef;
        }
Esempio n. 10
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     _AppHk    = hook as Plugin.Application.IAppGisUpdateRef;
     _hook     = hook as Plugin.Application.AppGidUpdate;
     m_xzqTree = _hook.XZQTree;
 }
Esempio n. 11
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     m_Hook      = hook as Plugin.Application.IAppFormRef;
     _hook       = hook as Plugin.Application.IAppFormRef;
     _pDBIntegra = hook as Plugin.Application.IAppDBIntegraRef;
 }
Esempio n. 12
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     //m_Hook = hook as Plugin.Application.IAppPrivilegesRef;
     //changed by chulili 20110722启动于数据源界面 IAppPrivilegesRef->IAppDBIntegraRef
     m_Hook = hook as Plugin.Application.IAppDBIntegraRef;
     _hook  = hook as Plugin.Application.IAppFormRef;
 }
Esempio n. 13
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     m_Hook = hook as Plugin.Application.IAppDBIntegraRef;
     //added by chulili 20110624
     _hook = hook as Plugin.Application.IAppFormRef;
     //end add
     if (m_Hook == null)
     {
         return;
     }
 }
Esempio n. 14
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            myHook = hook as Plugin.Application.IAppFileRef;


            //添加项目
        }
Esempio n. 15
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            myHook = hook as Plugin.Application.IAppGISRef;

            _map = myHook.ArcGisMapControl.ActiveView.FocusMap;
            ((IActiveViewEvents_Event)_map).ItemAdded   += new IActiveViewEvents_ItemAddedEventHandler(LayerControl_ItemAdded);
            ((IActiveViewEvents_Event)_map).ItemDeleted += new IActiveViewEvents_ItemDeletedEventHandler(LayerControl_ItemDeleted);
        }
Esempio n. 16
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     _AppHk = hook as Plugin.Application.IAppGISRef;
     if (_AppHk.MapControl == null)
     {
         return;
     }
 }
Esempio n. 17
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null) return;
            _AppHk = hook as Plugin.Application.IAppArcGISRef;

            Plugin.Application.IAppFormRef pAppForm = hook as Plugin.Application.IAppFormRef;
            _tool = new LineBufferQueryToolClass(pAppForm.MainForm);
            LineBufferQueryToolClass TempTool = _tool as LineBufferQueryToolClass;
            TempTool.WriteLog = WriteLog;
            _cmd = TempTool as ICommand;
            _cmd.OnCreate(_AppHk.MapControl);
        }
Esempio n. 18
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     myHook = hook as Plugin.Application.IAppFileRef;
     if (myHook.MapControl == null)
     {
         return;
     }
 }
Esempio n. 19
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     _AppHk = hook as Plugin.Application.IAppGisUpdateRef;
     if (_AppHk.CurrentControl == null)
     {
         return;
     }
 }
Esempio n. 20
0
 public FrmSheetMapUserSet(AxMapControl inAxMapControl, Form inForm, Plugin.Application.IApplicationRef inHook, SheetType inST)
 {
     InitializeComponent();
     //isOK = false;
     //cBoxScale.SelectedIndex = 0;
     //curMapName = incurMapName;
     pAxMapControl              = inAxMapControl;
     hook                       = inHook;
     pMainForm                  = inForm;
     sheetType                  = inST;
     pAxMapControl.OnMouseDown += new
                                  IMapControlEvents2_Ax_OnMouseDownEventHandler(pAxMapControl_OnMouseDown);//订阅事件
 }
Esempio n. 21
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     _AppHk = hook as Plugin.Application.IAppGisUpdateRef;
     if (_AppHk.MapControl == null)
     {
         return;
     }
     m_pAppForm = _AppHk as Plugin.Application.IAppFormRef;
 }
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.AppGIS;

            Plugin.Application.IAppFormRef pAppForm = hook as Plugin.Application.IAppFormRef;
            _tool = new PolygonBufferQueryToolClass(pAppForm.MainForm);
            _cmd  = _tool as ICommand;
            _cmd.OnCreate(_AppHk.MapControl);
        }
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;
            if (_AppHk.MapControl == null)
            {
                return;
            }

            _cmd = new ControlsMapZoomToLastExtentBackCommandClass();
            _cmd.OnCreate(_AppHk.MapControl);
        }
Esempio n. 24
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;
            if (_AppHk.MapControl == null)
            {
                return;
            }

            _cmd = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommand();
            _cmd.OnCreate(_AppHk.MapControl);
        }
Esempio n. 25
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     _AppHk = hook as Plugin.Application.IAppArcGISRef;
     if (_AppHk.MapControl == null)
     {
         return;
     }
     _pTool    = new DefaultTool();
     _pCommand = _pTool as ICommand;
     _pCommand.OnCreate(_AppHk.MapControl);
 }
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;
            if (_AppHk.MapControl == null)
            {
                return;
            }

            _cmd = new ControlsSelectToolClass();
            _cmd.OnCreate(_AppHk.MapControl);
        }
Esempio n. 27
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            myHook = hook as Plugin.Application.IAppFileRef;

            //获得选中的树节点的类型
            //若节点类型为EnumTreeNodeType.DATAFORMAT,则加载比例尺信息

            //_ComboBoxScale.Items.Clear();
            //_ComboBoxScale.Items.AddRange(new object[] { "不选择", "500", "1000", "2000", "5000", "10000", "20000" });
            //_ComboBoxScale.SelectedIndex = 0;
        }
Esempio n. 28
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;
            if (_AppHk.MapControl == null)
            {
                return;
            }

            _tool = new ControlsScenePanToolClass();
            _cmd  = _tool as ICommand;
        }
Esempio n. 29
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            _hook = hook as Plugin.Application.IAppFormRef;
            if (_hook == null)
            {
                return;
            }

            Plugin.Application.IAppFormRef     pAppFormRef = _hook as Plugin.Application.IAppFormRef;
            ESRI.ArcGIS.Geodatabase.IWorkspace pWks        = pAppFormRef.TempWksInfo.Wks;

            //启动数据更新子系统同时连接数据库(配置)
            if (ModData.v_SysDataSet == null)
            {
                //生成数据库操作对象
                ModData.v_SysDataSet           = new SysGisDataSet();
                ModData.v_SysDataSet.WorkSpace = pWks;
                ModData.Server   = pAppFormRef.TempWksInfo.Server;
                ModData.Instance = pAppFormRef.TempWksInfo.Service;
                ModData.Database = pAppFormRef.TempWksInfo.DataBase;
                ModData.User     = pAppFormRef.TempWksInfo.User;
                ModData.Password = pAppFormRef.TempWksInfo.PassWord;
                ModData.Version  = pAppFormRef.TempWksInfo.Version;
                ModData.dbType   = pAppFormRef.TempWksInfo.DBType;
            }

            //权限控制入口
            ModData.v_AppGisUpdate = new Plugin.Application.AppGidUpdate(_hook.MainForm, _hook.ControlContainer, _hook.ListUserPrivilegeID, _hook.SystemXml, _hook.DataTreeXml, _hook.DatabaseInfoXml, _hook.ColParsePlugin, _hook.ImageResPath, _hook.ConnUser);
            //ModData.v_AppGisUpdate = new Plugin.Application.AppGidUpdate(_hook.MainForm, _hook.ControlContainer, _hook.SystemXml, _hook.DataTreeXml, _hook.DatabaseInfoXml, _hook.ColParsePlugin, _hook.ImageResPath, _hook.ConnUser);
            ModData.v_AppGisUpdate.MyDocument = new System.Drawing.Printing.PrintDocument();
            ModData.v_AppGisUpdate.CurWksInfo = pAppFormRef.TempWksInfo;

            m_TrackCancel = new CancelTrackerClass();
            ModData.v_AppGisUpdate.MyDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(MyDocument_PrintPage);
            _UserControl = new UserControlSMPD(this.Name, this.Caption);
            _hook.MainForm.Controls.Add(_UserControl);
            _hook.MainForm.Controls.Add(ModData.v_AppGisUpdate.StatusBar);
            ModData.v_AppGisUpdate.UserInfo = "当前登录: " + _hook.ConnUser.TrueName;
            _hook.MainForm.FormClosing     += new System.Windows.Forms.FormClosingEventHandler(MainForm_FormClosing);

            //cyf 20110615 add:添加比例尺窗口事件
            ModData.v_AppGisUpdate.RefScaleCmb.SelectedIndexChanged += new EventHandler(RefScaleCmb_SelectedIndexChanged);
            ModData.v_AppGisUpdate.CurScaleCmb.SelectedIndexChanged += new EventHandler(CurScaleCmb_SelectedIndexChanged);

            //添加回车事件自定义比例尺
            DevComponents.DotNetBar.Controls.ComboBoxEx vComboEx = ModData.v_AppGisUpdate.CurScaleCmb.ComboBoxEx;
            vComboEx.KeyDown += new KeyEventHandler(vComboEx_KeyDown);
        }
Esempio n. 30
0
        public override void OnCreate(Plugin.Application.IApplicationRef hook)
        {
            if (hook == null)
            {
                return;
            }
            _AppHk = hook as Plugin.Application.IAppArcGISRef;

            Plugin.Application.IAppFormRef pAppForm = hook as Plugin.Application.IAppFormRef;
            _tool = new ImportPolygonQueryToolClass(pAppForm.MainForm, _AppHk.MapControl.Map);
            ImportPolygonQueryToolClass tempTool = _tool as ImportPolygonQueryToolClass;

            tempTool.WriteLog = this.WriteLog;
            _cmd = tempTool as ICommand;
            _cmd.OnCreate(_AppHk.MapControl);
        }