Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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();
            });
        }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
 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;
     }
 }
Esempio n. 5
0
 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;
     }
 }
Esempio n. 6
0
 public bool?Interact(string msg, ECallbackType type)
 {
     return(Interact(new InteractionMessage {
         Message = msg, Type = type
     }));
 }