using KGIS.Framework.Commands; using KGIS.Framework.Utils; using Kingo.Plugin.General.View; using System; namespace Kingo.Plugin.General.Commands { public class AboutCommand : BaseMenuCommand { public override void OnClick() { try { FrmAbout win = new FrmAbout(); win.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; win.ShowInMainWindow(true); } catch (Exception ex) { LogAPI.Debug("在启动 帮助 命令时异常,异常信息如下:"); LogAPI.Debug(ex); LogAPI.Debug("在启动 帮助 命令时异常信息结束"); } } public override void OnCreate(object Hook) { try { //if (m_hookHelper == null) //{ // m_hookHelper = new HookHelper(); // m_hookHelper.Hook = Hook; //} } catch (Exception ex) { LogAPI.Debug("在初始化 帮助 命令时异常,异常信息如下:"); LogAPI.Debug(ex); LogAPI.Debug("在初始化 帮助 命令时异常信息结束"); } } } }