private void ReceiverCallback(IntPtr aPtr, ECallbackType aType, IntPtr aReceiver) { switch (aType) { case ECallbackType.eAdded: ReceiverAdded(aReceiver); break; case ECallbackType.eChanged: ReceiverChanged(aReceiver); break; case ECallbackType.eRemoved: ReceiverRemoved(aReceiver); break; case ECallbackType.eVolumeControlChanged: ReceiverVolumeControlChanged(aReceiver); break; case ECallbackType.eVolumeChanged: ReceiverVolumeChanged(aReceiver); break; case ECallbackType.eMuteChanged: ReceiverMuteChanged(aReceiver); break; case ECallbackType.eVolumeLimitChanged: ReceiverVolumeLimitChanged(aReceiver); break; } }
void UnhandledCallback(CallbackMsg_t msg) { txtCallbacks.Invoke((MethodInvoker) delegate { int iCall = (msg.m_iCallback / 100) * 100; ECallbackType type = ( ECallbackType )iCall; txtCallbacks.AppendText("Unhandled callback: " + msg.m_iCallback + " Type: " + type + " Size: " + msg.m_cubParam + Environment.NewLine); txtCallbacks.ScrollToCaret(); }); }
private void SubnetCallback(IntPtr aPtr, ECallbackType aType, IntPtr aSubnet) { switch (aType) { case ECallbackType.eAdded: SubnetAdded(aSubnet); break; case ECallbackType.eChanged: SubnetChanged(aSubnet); break; case ECallbackType.eRemoved: SubnetRemoved(aSubnet); break; } }
public bool?Interact(string msg, ECallbackType type) { return(Interact(new InteractionMessage { Message = msg, Type = type })); }