mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-03 07:15:34 +00:00
MainApplicationContext: fixed tray icon resource issue.
This commit is contained in:
@@ -21,9 +21,7 @@ using DnsServerSystemTrayApp.Properties;
|
|||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Management;
|
using System.Management;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
@@ -139,9 +137,8 @@ namespace DnsServerSystemTrayApp
|
|||||||
//
|
//
|
||||||
// TrayIcon
|
// TrayIcon
|
||||||
//
|
//
|
||||||
var resources = new ComponentResourceManager(typeof(frmAbout));
|
|
||||||
TrayIcon = new NotifyIcon();
|
TrayIcon = new NotifyIcon();
|
||||||
TrayIcon.Icon = (Icon)resources.GetObject("$this.Icon");
|
TrayIcon.Icon = Resources.logo2;
|
||||||
TrayIcon.Visible = true;
|
TrayIcon.Visible = true;
|
||||||
TrayIcon.MouseUp += TrayIcon_MouseUp;
|
TrayIcon.MouseUp += TrayIcon_MouseUp;
|
||||||
TrayIcon.ContextMenuStrip = TrayIconContextMenu;
|
TrayIcon.ContextMenuStrip = TrayIconContextMenu;
|
||||||
|
|||||||
Reference in New Issue
Block a user