Beispiel #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);
        }
Beispiel #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);
        }
 protected virtual void OnNewDeviceConnected(CompatibleDevice device)
 {
     if(NewDeviceConnected != null)
     {
         NewDeviceConnected(device);
     }
 }
 protected virtual void OnDeviceRemoved(CompatibleDevice device)
 {
     if(DeviceRemoved != null)
     {
         DeviceRemoved(device);
     }
 }