Exemple #1
0
        internal override void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, IntPtr data)
        {
            switch (currentEvent)
            {
            case eNkMAIDEvent.kNkMAIDEvent_AddChild:
            case eNkMAIDEvent.kNkMAIDEvent_AddChildInCard:
                HandleAddChild(data);
                break;

            case eNkMAIDEvent.kNkMAIDEvent_AddPreviewImage:
                HandleAddPreviewImage(data);
                break;

            case eNkMAIDEvent.kNkMAIDEvent_CaptureComplete:
                Scheduler.Callback(new CaptureCompleteDelegate(OnCaptureComplete), this, (int)data);
                break;

            case eNkMAIDEvent.kNkMAIDEvent_CapChange:
                Scheduler.Callback(new CapabilityChangedDelegate(OnCapabilityChanged), this, (eNkMAIDCapability)data);
                break;

            case eNkMAIDEvent.kNkMAIDEvent_CapChangeValueOnly:
                Scheduler.Callback(new CapabilityChangedDelegate(OnCapabilityValueChanged), this, (eNkMAIDCapability)data);
                break;

            case eNkMAIDEvent.kNkMAIDEvent_RecordingInterrupted:
                Scheduler.Callback(new VideoRecordingInterruptedDelegate(OnVideoRecordingInterrupted), this, (int)data);
                break;

            default:
                Debug.Print("Unhandled event: " + currentEvent + " (" + data.ToString() + ")");
                break;
            }
        }
Exemple #2
0
        void _object_Event(NikonObject sender, IntPtr refClient, eNkMAIDEvent ulEvent, IntPtr data)
        {
            switch (ulEvent)
            {
            case eNkMAIDEvent.kNkMAIDEvent_CapChange:
                RefreshCaps();
                break;
            }

            HandleEvent(sender, ulEvent, data);
        }
Exemple #3
0
        internal override void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, IntPtr data)
        {
            switch (currentEvent)
            {
            case eNkMAIDEvent.kNkMAIDEvent_AddChild:
                HandleAddChild(data);
                break;

            case eNkMAIDEvent.kNkMAIDEvent_RemoveChild:
                HandleRemoveChild(data);
                break;
            }
        }
Exemple #4
0
 //
 // Event Callback
 //
 void EventProc(
     IntPtr refClient,
     eNkMAIDEvent ulEvent,
     IntPtr data)
 {
     if (Event != null)
     {
         Event(
             this,
             refClient,
             ulEvent,
             data);
     }
 }
Exemple #5
0
        internal override void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, uint data)
        {
            switch (currentEvent)
            {
                case eNkMAIDEvent.kNkMAIDEvent_AddChild:
                case eNkMAIDEvent.kNkMAIDEvent_AddChildInCard:
                    HandleAddChild(data);
                    break;

                case eNkMAIDEvent.kNkMAIDEvent_AddPreviewImage:
                    HandleAddPreviewImage(data);
                    break;

                case eNkMAIDEvent.kNkMAIDEvent_CaptureComplete:
                    Scheduler.Callback(new CaptureCompleteDelegate(OnCaptureComplete), this, (int)data);
                    break;

                case eNkMAIDEvent.kNkMAIDEvent_CapChange:
                    Scheduler.Callback(new CapabilityChangedDelegate(OnCapabilityChanged), this, (eNkMAIDCapability)data);
                    break;

                case eNkMAIDEvent.kNkMAIDEvent_CapChangeValueOnly:
                    Scheduler.Callback(new CapabilityChangedDelegate(OnCapabilityValueChanged), this, (eNkMAIDCapability)data);
                    break;

                case eNkMAIDEvent.kNkMAIDEvent_RecordingInterrupted:
                    Scheduler.Callback(new VideoRecordingInterruptedDelegate(OnVideoRecordingInterrupted), this, (int)data);
                    break;

                default:
                    Debug.Print("Unhandled event: " + currentEvent + " (" + data.ToString() + ")");
                    break;
            }
        }
Exemple #6
0
        void _object_Event(NikonObject sender, IntPtr refClient, eNkMAIDEvent ulEvent, UInt32 data)
        {
            switch (ulEvent)
            {
                case eNkMAIDEvent.kNkMAIDEvent_CapChange:
                    RefreshCaps();
                    break;
            }

            HandleEvent(sender, ulEvent, data);
        }
Exemple #7
0
 internal virtual void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, uint data)
 {
     // Note: Overridden in inheritors
 }
Exemple #8
0
        internal override void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, uint data)
        {
            switch (currentEvent)
            {
                case eNkMAIDEvent.kNkMAIDEvent_AddChild:
                    HandleAddChild(data);
                    break;

                case eNkMAIDEvent.kNkMAIDEvent_RemoveChild:
                    HandleRemoveChild(data);
                    break;
            }
        }
Exemple #9
0
 internal virtual void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, IntPtr data)
 {
     // Note: Overridden in inheritors
 }
 //
 // Event Callback
 //
 void EventProc(
     IntPtr refClient,
     eNkMAIDEvent ulEvent,
     UInt32 data)
 {
     if (Event != null)
     {
         Event(
             this,
             refClient,
             ulEvent,
             data);
     }
 }