年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
947 B

6 months ago
using ESRI.ArcGIS.Controls;
using KGIS.Framework.Maps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kingo.Plugin.MapView.Commands
{
public class CmdAddGroupLayer : BaseMapMenuCommand
{
Views.V_AddLayerGroup m_View = null;
public override void OnClick()
{
if (m_View == null)
{
m_View = new Views.V_AddLayerGroup(m_hookHelper);
m_View.Closed += M_View_Closed;
}
m_View.ShowInMainWindow(true);
}
private void M_View_Closed(object sender, EventArgs e)
{
m_View = null;
}
public override void OnCreate(object Hook)
{
if (m_hookHelper == null)
{
m_hookHelper = new HookHelper();
m_hookHelper.Hook = Hook;
}
}
}
}