Exemple #1
0
        public int OnDefaultDeviceChanged(EDataFlow flow, ERole role, string strDefaultDeviceId)
        {
            DefaultDeviceChangedEventArgs arg = new DefaultDeviceChangedEventArgs(flow, role, strDefaultDeviceId);

            _DeviceEnumerator.FireDefaultDeviceChangedEvent(arg);
            return(0);
        }
        internal void FireDefaultDeviceChangedEvent(DefaultDeviceChangedEventArgs e)
        {
            DefaultDeviceChangedEventHandler del = OnDefaultDeviceChanged;

            if (del != null)
            {
                del(this, e);
            }
        }
 internal void FireDefaultDeviceChangedEvent(DefaultDeviceChangedEventArgs e)
 {
     DefaultDeviceChangedEventHandler del = OnDefaultDeviceChanged;
     if (del != null) del(this, e);
 }
 public int OnDefaultDeviceChanged(EDataFlow flow, ERole role, string strDefaultDeviceId)
 {
     DefaultDeviceChangedEventArgs arg = new DefaultDeviceChangedEventArgs(flow, role, strDefaultDeviceId);
     _DeviceEnumerator.FireDefaultDeviceChangedEvent(arg);
     return 0;
 }