Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
        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);
 }
Ejemplo n.º 6
0
 public void SetIconDataCallback(IconDataDelegate theDelegate)
 {
     iconDataDelegate = theDelegate;
 }
Ejemplo n.º 7
0
 internal void SetIconDataCallback(IconDataDelegate theDelegate)
 {
     iconDataDelegate = theDelegate;
 }