protected override void ProcessMessage(IpcMessageType type, byte[] data) { if (type == IpcMessageType.AnonIpcClipboardData) { ClipboardDataReceived?.Invoke(this, new AnonIpcClipboardDataMessage(data).Data); } else if (type == IpcMessageType.AnonIpcEdgeHit) { EdgeHit?.Invoke(this, new AnonIpcEdgeHitMessage(data).HitEdge); } else if (type == IpcMessageType.AnonIpcDisplayConfigReply) { DisplayConfigUpdated?.Invoke(this, new AnonIpcDisplayConfigMessage(data).Config); } else if (type == IpcMessageType.AnonIpcLMouseStateReply) { LeftMouseStateUpdated?.Invoke(this, new AnonIpcLMouseStateMessage(data).LeftMouseState); } else if (type == IpcMessageType.AnonIpcDoDragDrop) { DataDropped?.Invoke(this, new AnonIpcDoDragDropMessage(data).DropData); } else if (type == IpcMessageType.AnonIpcDragDropCancelled) { DragDropCancelled?.Invoke(this, null); } else if (type == IpcMessageType.AnonIpcDragDropSuccess) { DragDropSuccess?.Invoke(this, null); } else if (type == IpcMessageType.AnonIpcDragDropComplete) { DragDropComplete?.Invoke(this, null); } else if (type == IpcMessageType.AnonIpcStreamReadRequest) { HandleReadStreamRequest(new AnonIpcReadStreamRequestMessage(data)); } else if (type == IpcMessageType.AnonIpcRequestFileToken) { HandleTokenRequest(new AnonIpcRequestFileTokenMessage(data)); } }
private void NativeObject_DropComplete(object sender, Guid operationId) { DragDropComplete?.Invoke(this, operationId); }