12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using Kbg.NppPluginNET.PluginInfrastructure;
- using System;
- using System.Windows.Forms;
- namespace HelloNppPlugin
- {
- public class Main
- {
- public const string PluginName = nameof(HelloNppPlugin);
- public static void CommandMenuInit()
- {
- PluginBase.SetCommand(0, "Say hello", SayHi);
- }
- private static void SayHi()
- {
- MessageBox.Show("Hello NppPlugin by C#!");
- }
- public static void SetToolBarIcon()
- {
- }
- public static void PluginCleanUp()
- {
- }
- public static void OnNotification(ScNotification notification)
- {
- }
- }
- internal class Win32Window : IWin32Window
- {
- public IntPtr Handle { get; }
- public Win32Window(IntPtr handle)
- {
- Handle = handle;
- }
- }
- }
|