示例#1
0
        private void btnWalkHere_Click(object sender, RoutedEventArgs e)
        {
            Task.Run(async() =>
            {
                await SetMoveToTargetTask.Execute(model.CurrentLatitude, model.CurrentLongitude);
            });

            popSelect.IsOpen = false;
        }
示例#2
0
 private void btnWalkHere_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(async() =>
     {
         await SetMoveToTargetTask.Execute(fort.Latitude, fort.Longitude, fort.FortId);
     });
     this.Dispatcher.Invoke(() =>
     {
         popInfo.IsOpen = false;
     });
 }
示例#3
0
 private void btnCatchHim_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(async() =>
     {
         await SetMoveToTargetTask.Execute(nearbyModel.Latitude, nearbyModel.Longitude, nearbyModel.FortId);
     });
     this.Dispatcher.Invoke(() =>
     {
         popInfo.IsOpen = false;
     });
 }
示例#4
0
 public async Task Handle(ISession session, WebSocketSession webSocketSession, dynamic message)
 {
     await SetMoveToTargetTask.Execute((double)message.Latitude, (double)message.Longitude, (string)message.FortId
                                       );
 }
示例#5
0
        private async void btnWalkHere_Click(object sender, RoutedEventArgs e)
        {
            await SetMoveToTargetTask.Execute(fort.Latitude, fort.Longitude, fort.FortId);

            popInfo.IsOpen = false;
        }
示例#6
0
        private async void btnCatchHim_Click(object sender, RoutedEventArgs e)
        {
            await SetMoveToTargetTask.Execute(nearbyModel.Latitude, nearbyModel.Longitude, nearbyModel.FortId);

            popInfo.IsOpen = false;
        }