/// <summary> /// 修改插件信息的窗口 /// </summary> public PluginInfoCtrl() { InitializeComponent(); this.cmbShortcutKeys.Items.AddRange(Enum.GetNames(typeof(Shortcut))); this.cmbShortcutKeys.SelectedIndex = 0; this.cmbInvokeType.Items.AddRange(EnumDescriptionHelper.GetDescriptions <EPluginInvokeType>()); this.cmbInvokeType.SelectedIndex = 0; }
/// <summary> /// 修改插件信息的窗口 /// </summary> /// <param name="plugin"></param> public PluginInfoForm(IPluginItem plugin = null) { InitializeComponent(); this.cmbShortcutKeys.Items.AddRange(Enum.GetNames(typeof(Shortcut))); this.cmbShortcutKeys.SelectedIndex = 0; this.cmbInvokeType.Items.AddRange(EnumDescriptionHelper.GetDescriptions <EPluginInvokeType>()); this.cmbInvokeType.SelectedIndex = 0; if (plugin != null) { Plugin = plugin; } }