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