Beispiel #1
0
        private void 空间查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //新创建空间查询窗体
            FormQueryBySpatial formQueryBySpatial = new FormQueryBySpatial();

            //将当前主窗体中MapControl控件中的Map对象赋值给FormSelection窗体的CurrentMap属性
            formQueryBySpatial.CurrentMap = axMapControl1.Map;
            //显示空间查询窗体
            formQueryBySpatial.Show();
        }
Beispiel #2
0
        private void queyBySpatialRelMenuItem_Click(object sender, EventArgs e)
        {
            //新建空间查询窗体
            FormQueryBySpatial formQueryBySpatial = new FormQueryBySpatial();

            //地图作为参数传入到窗体中
            formQueryBySpatial.CurrentMap = axMapControl1.Map;
            //显示窗体
            formQueryBySpatial.Show();
        }