Esempio n. 1
0
        public SavePage()
        {
            InitializeComponent();
            var myParameter = NavigationService.GetLastNavigationData();

            systemPacket = (SystemPacket)myParameter; //System packet contains information from main page
        }
Esempio n. 2
0
        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);
            }
        }