Ejemplo n.º 1
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            notifyIcon = new NotifyIcon(components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon             = Properties.Resources.TrayIcon64x64,
                Text             = _DefaultTooltip,
                Visible          = true
            };

            _uiThreadContext = new WindowsFormsSynchronizationContext();
            notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;
            notifyIcon.Click += NotifyIcon_Click;
            // notifyIcon.DoubleClick += notifyIcon_DoubleClick;
            remoteService                       = new RemoteWindowService();
            remoteService.OnScanEvent          += HandleScanEvent;
            remoteService.OnScanDeliveredEvent += HandleScanDeliveredEvent;
            remoteService.Activate();
        }
Ejemplo n.º 2
0
 public Subscriber(RemoteWindowService parent)
 {
     _parent = parent;
 }