private void btnWalkHere_Click(object sender, RoutedEventArgs e) { Task.Run(async() => { await SetMoveToTargetTask.Execute(model.CurrentLatitude, model.CurrentLongitude); }); popSelect.IsOpen = false; }
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; }); }
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; }); }
public async Task Handle(ISession session, WebSocketSession webSocketSession, dynamic message) { await SetMoveToTargetTask.Execute((double)message.Latitude, (double)message.Longitude, (string)message.FortId ); }
private async void btnWalkHere_Click(object sender, RoutedEventArgs e) { await SetMoveToTargetTask.Execute(fort.Latitude, fort.Longitude, fort.FortId); popInfo.IsOpen = false; }
private async void btnCatchHim_Click(object sender, RoutedEventArgs e) { await SetMoveToTargetTask.Execute(nearbyModel.Latitude, nearbyModel.Longitude, nearbyModel.FortId); popInfo.IsOpen = false; }