BTool.FormMain.DeviceBDAddressNotify C# (CSharp) Méthode

DeviceBDAddressNotify() private méthode

private DeviceBDAddressNotify ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        private void DeviceBDAddressNotify(object sender, EventArgs e)
        {
            if (InvokeRequired)
            {
                try
                {
                    Invoke((Delegate)new DeviceBDAddressNotifyDelegate(DeviceBDAddressNotify), sender, e);
                }
                catch { }
            }
            else
            {
                m_mutex.WaitOne();
                DeviceForm devForm = sender as DeviceForm;
                if (devForm != null)
                    comPortTreeForm.AddDeviceInfo(devForm);
                m_mutex.ReleaseMutex();
            }
        }