Exemplo n.º 1
0
        public void NewDeviceConnectedEventHandler(CompatibleDevice connectedDevice)
        {
            DevicesPanel devicesPanel = GetDevicesPanel();
            devicesPanel.RefreshDevicesList();

            trayIcon.ShowBalloonTip(2000, "New device connected", connectedDevice.Name
                                    + " has been connected and is ready to be synchronized.", ToolTipIcon.Info);
        }
Exemplo n.º 2
0
        public void DeviceRemovedEventHandler(CompatibleDevice removedDevice)
        {
            DevicesPanel devicesPanel = GetDevicesPanel();
            devicesPanel.RefreshDevicesList();

            trayIcon.ShowBalloonTip(2000, "Device removed", removedDevice.Name
                                    + " has been removed from the system.", ToolTipIcon.Info);
        }
Exemplo n.º 3
0
 protected virtual void OnNewDeviceConnected(CompatibleDevice device)
 {
     if(NewDeviceConnected != null)
     {
         NewDeviceConnected(device);
     }
 }
Exemplo n.º 4
0
 protected virtual void OnDeviceRemoved(CompatibleDevice device)
 {
     if(DeviceRemoved != null)
     {
         DeviceRemoved(device);
     }
 }