private async void Remove_Click(object sender, RoutedEventArgs e) { foreach (var item in client) { if (!item.IsCurrentClient) { string tokenId = item.TokenId; var removePostData = new Dictionary <string, string>() { { "tokenId", tokenId } }; var removePost = new FormUrlEncodedContent(removePostData); await MainWindow.operateClient.PostAsync(MainWindow.authserverHttp + "/authserver/removeOnlineUser.do", removePost); } } OnlineClientOperation operation = new OnlineClientOperation(ClientGrid); client = await operation.ShowClient(); }
public async void InitializeClientShow() { OnlineClientOperation operation = new OnlineClientOperation(ClientGrid); client = await operation.ShowClient(); }