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.
|
|
|
|
using ESRI.ArcGIS.Controls;
|
|
|
|
|
using KGIS.Framework.Commands;
|
|
|
|
|
using KGIS.Framework.Utils;
|
|
|
|
|
using Kingo.Plugin.DTBJK_XJ.View;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.Plugin.DTBJK_XJ.Commands
|
|
|
|
|
{
|
|
|
|
|
public class CmdLadJKTBTask : BaseMenuCommand
|
|
|
|
|
{
|
|
|
|
|
private IEngineEditor m_pEditor { get; set; }
|
|
|
|
|
private UCLoadDTBJKData uCLoadDTBJKData { get; set; }
|
|
|
|
|
public override void OnClick()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (uCLoadDTBJKData == null)
|
|
|
|
|
{
|
|
|
|
|
uCLoadDTBJKData = new UCLoadDTBJKData()
|
|
|
|
|
{
|
|
|
|
|
Title = "建库任务分发",
|
|
|
|
|
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen
|
|
|
|
|
};
|
|
|
|
|
uCLoadDTBJKData.Closed += LoadDTBJKData_CloseViewHandler;
|
|
|
|
|
}
|
|
|
|
|
uCLoadDTBJKData.ShowInMainWindow(true);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
LogAPI.Debug("Kingo.Plugin.DTBJK_XJ.Commands.CmdLadJKTBTask:OnClick" + ex.Message);
|
|
|
|
|
LogAPI.Debug("Kingo.Plugin.DTBJK_XJ.Commands.CmdLadJKTBTask:OnClick" + ex.StackTrace);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnCreate(object Hook)
|
|
|
|
|
{
|
|
|
|
|
m_pEditor = new EngineEditorClass();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void LoadDTBJKData_CloseViewHandler(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (uCLoadDTBJKData != null)
|
|
|
|
|
{
|
|
|
|
|
uCLoadDTBJKData.DataContext = null;
|
|
|
|
|
uCLoadDTBJKData = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
LogAPI.Debug(ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|