SharingViewModel()
 {
     IsConnected    = false;
     _peerConnector = new PeerConnector();
     _peerConnector.ConnectionStatusChanged += OnConnectionStatusChanged;
     _peerConnector.ReisadviesReceived      += OnReisadviesReceived;
 }
        /// <summary>
        /// Attempt to start a sharing session
        /// </summary>
        /// <remarks>This does not mean we are connected to a peer. It just means we have successfully started the request to share.
        /// The SessionConnectionCompleted event will tell us whether a connection was established.</remarks>
        public void StartSharingSession(byte[] imageBytes)
        {
            _queueData = imageBytes;

            if (!IsConnected)
            {
                // Create a PeerConnector instance if necessary
                if (_peerConnector == null)
                {
                    _peerConnector = new PeerConnector();
                }

                // Start the connection
                _peerConnector.StartConnect();
            }
            else
            {
                SendReisadviesToPeer(_queueData);
            }
        }