Exemplo n.º 1
0
 void OnPlantronicsDeviceAttached(object sender, AttachedArgs e)
 {
     if (_settingsManager.DeviceConnectNotification)
     {
         _addinNotificationService.Notify("Plantronics device attached", "Headset", NotificationType.Info, TimeSpan.FromSeconds(2));
     }
 }
Exemplo n.º 2
0
 private void OnPlantronicsDeviceAttached(object sender, AttachedArgs e)
 {
     if (_settingsManager.DeviceConnectChangeStatus)
     {
         _cicStatusService.SetStatus(_settingsManager.DeviceConnectStatusKey);
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 // Device attach/detach: ************************************************************
 private void OnAttached(AttachedArgs e)
 {
     if (Attached != null)
         Attached(this, e);
 }
Exemplo n.º 5
0
 void _spokes_Attached(object sender, AttachedArgs e)
 {
 }
Exemplo n.º 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()));
 }
Exemplo n.º 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");
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 9
0
 void m_spokes_Attached(object sender, AttachedArgs e)
 {
     DebugPrint(MethodInfo.GetCurrentMethod().Name, "@@@ Plantronics Device \"" + e.m_device.ProductName + "\" was attached");
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }