Added tray icon

This commit is contained in:
Matthew Bonner
2018-12-15 12:11:42 +00:00
parent b97fadd8b1
commit e64c69729c
17 changed files with 1206 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System.Reflection;
using System.Windows.Forms;
namespace DnsServerTrayIcon
{
public static class ContextMenuNotifyIconExtensions
{
public static void ShowContextMenu(this NotifyIcon notifyIcon)
{
MethodInfo methodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic);
methodInfo.Invoke(notifyIcon, null);
}
}
}