public SavePage() { InitializeComponent(); var myParameter = NavigationService.GetLastNavigationData(); systemPacket = (SystemPacket)myParameter; //System packet contains information from main page }
private void ProcessMessage(SystemPacket systemPacket) { if (systemPacket.Message.GetType() == typeof(MsgOpDisconnectResponse)) { } ConnectionHeader ConHeader = systemPacket.Header as ConnectionHeader; if (ConHeader != null) { lock (OperationalSockets) { if (systemPacket.OpSocket != null) { Header header = ConHeader.DeserializeHeader(systemPacket.OpSocket); if (header == null) { return; } systemPacket.OpSocket.onReceiveMessage(systemPacket.Message, header); } else { } } } else { systemPacket.Message.ProcessPayload(Client, null); } }