コード例 #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            _user = (UwpUser)e.Parameter;
            MapHandler.DrawUser(MyMap, _user, false, false);
            MapHandler.Center(MyMap, _user.Location);
            GeofenceMonitor.Current.GeofenceStateChanged += CurrentOnGeofenceStateChanged;

            var refreshRequest = JsonConvert.SerializeObject(new RefreshRequest {
                user = _user.User
            });

            var packet = new Packet {
                PacketType = EPacketType.RefreshRequest, Payload = refreshRequest
            };

            TcpClient.DoRequest(packet, ResponseCallback);

            StartTimer();
        }