@@ -19,10 +19,6 @@ public partial class NotifyIcon : UserControl
19
19
private ManagedShell . WindowsTray . NotifyIcon TrayIcon ;
20
20
21
21
private const string HARDWARE_GUID = "7820ae78-23e3-4229-82c1-e41cb67d5b9c" ;
22
- private const string MEETNOW_GUID = "7820ae83-23e3-4229-82c1-e41cb67d5b9c" ;
23
- private const string NETWORK_GUID = "7820ae74-23e3-4229-82c1-e41cb67d5b9c" ;
24
- private const string POWER_GUID = "7820ae75-23e3-4229-82c1-e41cb67d5b9c" ;
25
- private const string VOLUME_GUID = "7820ae73-23e3-4229-82c1-e41cb67d5b9c" ;
26
22
27
23
public static DependencyProperty HostProperty = DependencyProperty . Register ( "Host" , typeof ( Taskbar ) , typeof ( NotifyIcon ) ) ;
28
24
@@ -47,10 +43,10 @@ private void applyEffects()
47
43
string iconGuid = TrayIcon . GUID . ToString ( ) ;
48
44
49
45
if ( ! ( iconGuid == HARDWARE_GUID ||
50
- iconGuid == MEETNOW_GUID ||
51
- iconGuid == NETWORK_GUID ||
52
- iconGuid == POWER_GUID ||
53
- iconGuid == VOLUME_GUID ) )
46
+ iconGuid == NotificationArea . MEETNOW_GUID ||
47
+ iconGuid == NotificationArea . NETWORK_GUID ||
48
+ iconGuid == NotificationArea . POWER_GUID ||
49
+ iconGuid == NotificationArea . VOLUME_GUID ) )
54
50
{
55
51
return ;
56
52
}
@@ -160,7 +156,7 @@ private bool HandleNotificationIconMouseWheel(bool upOrDown)
160
156
{
161
157
switch ( TrayIcon ? . GUID . ToString ( ) )
162
158
{
163
- case VOLUME_GUID :
159
+ case NotificationArea . VOLUME_GUID :
164
160
VolumeChanger . ChangeVolume ( WindowHelper . FindWindowsTray ( IntPtr . Zero ) , upOrDown ) ;
165
161
return true ;
166
162
default :
0 commit comments