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.
56 lines
1.7 KiB
56 lines
1.7 KiB
using ESRI.ArcGIS.ADF.BaseClasses; |
|
using ESRI.ArcGIS.Controls; |
|
using KGIS.Framework.Commands; |
|
using KGIS.Framework.Maps; |
|
using KGIS.Framework.Utils; |
|
using KGIS.Framework.Utils.Helper; |
|
using Kingo.PluginServiceInterface; |
|
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
|
|
namespace Kingo.Plugin.ProofManager.Commands |
|
{ |
|
/// <summary> |
|
/// 导出举证成果 |
|
/// </summary> |
|
public class EvidentiaryResultsCommand : BaseMenuCommand |
|
{ |
|
IEngineEditor m_pEditor; |
|
View.EvidentiaryResults view = null; |
|
public override void OnCreate(object hook) |
|
{ |
|
m_pEditor = new EngineEditorClass(); |
|
} |
|
|
|
public override void OnClick() |
|
{ |
|
try |
|
{ |
|
view = new View.EvidentiaryResults(); |
|
view.Closed += (e, s) => |
|
{ |
|
view = null; |
|
}; |
|
view.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; |
|
view.ShowInMainWindow(true); |
|
} |
|
catch (Exception ex) |
|
{ |
|
LogAPI.Debug(ex); |
|
MessageHelper.ShowError("举证成果导出界面加载错误,可能的原因是:" + ex.Message); |
|
} |
|
} |
|
public override bool Enabled |
|
{ |
|
get |
|
{ |
|
ProjectInfo prj = MapsManager.Instance.CurrProjectInfo as ProjectInfo; |
|
if (prj == null) return false; |
|
return !string.IsNullOrWhiteSpace(prj.BGDatabase) && m_pEditor.EditState == esriEngineEditState.esriEngineStateNotEditing; |
|
} |
|
} |
|
} |
|
}
|
|
|