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; } }
void _object_Event(NikonObject sender, IntPtr refClient, eNkMAIDEvent ulEvent, IntPtr data) { switch (ulEvent) { case eNkMAIDEvent.kNkMAIDEvent_CapChange: RefreshCaps(); break; } HandleEvent(sender, ulEvent, data); }
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; } }
// // Event Callback // void EventProc( IntPtr refClient, eNkMAIDEvent ulEvent, IntPtr data) { if (Event != null) { Event( this, refClient, ulEvent, data); } }
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; } }
void _object_Event(NikonObject sender, IntPtr refClient, eNkMAIDEvent ulEvent, UInt32 data) { switch (ulEvent) { case eNkMAIDEvent.kNkMAIDEvent_CapChange: RefreshCaps(); break; } HandleEvent(sender, ulEvent, data); }
internal virtual void HandleEvent(NikonObject obj, eNkMAIDEvent currentEvent, uint data) { // Note: Overridden in inheritors }
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; } }
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); } }