public void SubscribeToDevice(Device pDevice) { if (mSubscribedDevice.Contains(pDevice)) { return; } pDevice.OnMidiValueChanged += new OnMidiValueChangedDelegate(pDevice_OnMidiValueChanged); pDevice.Subscribe(); pDevice.Start(); }
public void SubscribeToDevice(Device pDevice) { if (mSubscribedDevice.Contains(pDevice)) { return; } pDevice.OnMidiValueChanged += new OnMidiValueChangedDelegate(pDevice_OnMidiValueChanged); pDevice.Subscribe(); pDevice.Start(); foreach (BcfControl ctrl in mAllControls) { ctrl.BcfAction.Device = pDevice; } }