public void Initialize() { try { prepareCollections(); trayDelegate = SysTrayCallback; iconDataDelegate = IconDataCallback; _explorerTrayService.SetSystrayCallback(trayDelegate); _explorerTrayService.Run(); _trayService.SetSystrayCallback(trayDelegate); _trayService.SetIconDataCallback(iconDataDelegate); Handle = _trayService.Initialize(); _trayService.Run(); // load the shell system tray objects (network, power, etc) shellServiceObject = new ShellServiceObject(); shellServiceObject.Start(); } catch { IsFailed = true; } }
public void Initialize() { try { setWindowsTaskbarBottommost(); trayDelegate = new SystrayDelegate(SysTrayCallback); iconDataDelegate = new IconDataDelegate(IconDataCallback); hooksWrapper.SetSystrayCallback(trayDelegate); hooksWrapper.SetIconDataCallback(iconDataDelegate); Handle = hooksWrapper.InitializeSystray(); hooksWrapper.Run(); } catch { IsFailed = true; } }
public void Initialize() { try { setWindowsTaskbarBottommost(); prepareCollections(); trayDelegate = new SystrayDelegate(SysTrayCallback); iconDataDelegate = new IconDataDelegate(IconDataCallback); hooksWrapper.SetSystrayCallback(trayDelegate); hooksWrapper.SetIconDataCallback(iconDataDelegate); Handle = hooksWrapper.InitializeSystray(); hooksWrapper.Run(); // load the shell system tray objects (network, power, etc) startShellServiceObject(); } catch { IsFailed = true; } }
public void Initialize() { try { setWindowsTaskbarBottommost(); prepareCollections(); trayDelegate = SysTrayCallback; iconDataDelegate = IconDataCallback; menuBarSizeDelegate = MenuBarSizeCallback; trayService.SetSystrayCallback(trayDelegate); trayService.SetIconDataCallback(iconDataDelegate); trayService.SetMenuBarSizeCallback(menuBarSizeDelegate); Handle = trayService.Initialize(); trayService.Run(); // load the shell system tray objects (network, power, etc) startShellServiceObject(); } catch { IsFailed = true; } }
/// <summary> /// Sets the delegate for the icon data callback. /// </summary> /// <param name="theDelegate">The system tray callback delegate.</param> public void SetIconDataCallback(IconDataDelegate theDelegate) { InteropCalls.SetIconDataCallback(theDelegate); }
public void SetIconDataCallback(IconDataDelegate theDelegate) { iconDataDelegate = theDelegate; }
internal void SetIconDataCallback(IconDataDelegate theDelegate) { iconDataDelegate = theDelegate; }