void OnPlantronicsDeviceAttached(object sender, AttachedArgs e)
 {
     if (_settingsManager.DeviceConnectNotification)
     {
         _addinNotificationService.Notify("Plantronics device attached", "Headset", NotificationType.Info, TimeSpan.FromSeconds(2));
     }
 }
Exemple #2
0
 private void OnPlantronicsDeviceAttached(object sender, AttachedArgs e)
 {
     if (_settingsManager.DeviceConnectChangeStatus)
     {
         _cicStatusService.SetStatus(_settingsManager.DeviceConnectStatusKey);
     }
 }
Exemple #3
0
 static void spokes_Attached(object sender, AttachedArgs e)
 {
     Console.WriteLine("Attached, sending message to Client App via socket...");
     if (socket == null)
     {
         Console.WriteLine("INFO: No client connected.");
         return;
     }
     socket.sendMsg("Attached,"+e.m_device.ProductName+","+e.m_device.ProductID);
 }
Exemple #4
0
 // Device attach/detach: ************************************************************
 private void OnAttached(AttachedArgs e)
 {
     if (Attached != null)
         Attached(this, e);
 }
 void _spokes_Attached(object sender, AttachedArgs e)
 {
 }
Exemple #6
0
 void m_spokes_Attached(object sender, AttachedArgs e)
 {
     OnPltEvent(new PltEventArgs(PltEventType.Attached,
         e.m_device.ProductName.ToString(),
         e.m_device.ProductId.ToString()));
 }
Exemple #7
0
        void spokes_DeviceAttached(object sender, AttachedArgs e)
        {
            LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> Device was attached: " + e.m_device.ProductName);
            UpdateDeviceStatusGUIItem(deviceStatusLabel, e.m_device.ProductName);
            m_productname = e.m_device.ProductName;

            AnimateBackgroundColor(deviceStatusLabel, Color.FromArgb(0, 51, 102));

            if (IsDA45()) UpdateDeviceStatusGUIItem(proximityStateLbl, "In Range"); // TODO for now assume in range on attach of DA45, no way to query initial state
            else UpdateDeviceStatusGUIItem(proximityStateLbl, "Unknown");
        }
Exemple #8
0
 void m_spokes_Attached(object sender, AttachedArgs e)
 {
     DebugPrint(MethodInfo.GetCurrentMethod().Name, "Headset attached: " + e.m_device.ProductName);
     if (m_lockSeconds == 0)
     {
         UpdateStatusLabel("Idle");
         SetLockButtonEnabled(false);
     }
 }
Exemple #9
0
 void m_spokes_Attached(object sender, AttachedArgs e)
 {
     DebugPrint(MethodInfo.GetCurrentMethod().Name, "@@@ Plantronics Device \"" + e.m_device.ProductName + "\" was attached");
 }
Exemple #10
0
        void m_spokes_Attached(object sender, AttachedArgs e)
        {
            OnPltEvent(new PltEventArgs(PltEventType.Attached,
                e.m_device.ProductName.ToString(),
                e.m_device.ProductId.ToString()));

            m_previousAudioSensing = m_spokes.GetAudioSensing();
            m_spokes.SetAudioSensing(false);
        }
Exemple #11
0
        private void OnDeviceAttached(object sender, AttachedArgs e)
        {
            Debug.WriteLine("OnDeviceAttached ");
            _traceContext.Status("OnDeviceAttached "); ;

            InternalName = e.m_device.InternalName;
            ManufacturerName = e.m_device.ManufacturerName;
            ProductName = e.m_device.ProductName;
            SerialNumber = e.m_device.SerialNumber;
            VersionNumber = e.m_device.VersionNumber;

            if (PlantronicsDeviceAttached != null)
            {
                PlantronicsDeviceAttached(this, e);
            }
        }