public NotifyIconAdv() { int p = (int)Environment.OSVersion.Platform; if ((p == 4) || (p == 128)) { // Unix genericNotifyIcon = new NotifyIcon(); } else { // Windows windowsNotifyIcon = new NotifyIconWindowsImplementation(); } }
public NotifyIconAdv() { if (Environment.OSVersion.Platform == PlatformID.MacOSX || Environment.OSVersion.Platform == PlatformID.Unix) { _genericNotifyIcon = new NotifyIcon(); } else { _windowsNotifyIcon = new NotifyIconWindowsImplementation(); } }
public NotifyIconAdv() { if (Hardware.OperatingSystem.IsUnix) // Unix { genericNotifyIcon = new NotifyIcon(); } else // Windows { windowsNotifyIcon = new NotifyIconWindowsImplementation(); } }
internal NotifyIconNativeWindow(NotifyIconWindowsImplementation component) { this.reference = component; }