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.
58 lines
1.6 KiB
58 lines
1.6 KiB
using KGIS.Framework.Commands; |
|
using KGIS.Framework.Utils; |
|
using Kingo.Plugin.General.View; |
|
using System; |
|
|
|
namespace Kingo.Plugin.General.Commands |
|
{ |
|
/// <summary> |
|
/// 公共方法-打开图斑列表(矢量,单图斑建库,预处理) |
|
/// </summary> |
|
public class CmdLoadTreeNodeList : BaseMenuCommand |
|
{ |
|
private UCJCTBTree ucJCTBTree = null; |
|
public override void OnClick() |
|
{ |
|
try |
|
{ |
|
if (ucJCTBTree == null) |
|
{ |
|
ucJCTBTree = new UCJCTBTree |
|
{ |
|
AllowEdit = true, |
|
IsShow = true |
|
}; |
|
ucJCTBTree.CloseViewHandler += UCJCTBTree_CloseViewHandler; |
|
ucJCTBTree.BindData(SystemTypeEnum.WYZS); |
|
} |
|
} |
|
catch (Exception ex) |
|
{ |
|
LogAPI.Debug("在初始化 单图斑建库-CmdLoadJCTB 命令时异常,异常信息如下:"); |
|
LogAPI.Debug(ex); |
|
LogAPI.Debug("在初始化 单图斑建库-CmdLoadJCTB 命令时异常信息结束"); |
|
} |
|
} |
|
|
|
public override void OnCreate(object Hook) |
|
{ |
|
|
|
} |
|
|
|
private void UCJCTBTree_CloseViewHandler(object sender, EventArgs e) |
|
{ |
|
try |
|
{ |
|
if (ucJCTBTree != null) |
|
{ |
|
ucJCTBTree.ClosePanel(); |
|
ucJCTBTree = null; |
|
} |
|
} |
|
catch (Exception ex) |
|
{ |
|
LogAPI.Debug(ex); |
|
} |
|
} |
|
} |
|
}
|
|
|