示例#1
0
        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();
        }
示例#2
0
        public async void InitializeClientShow()
        {
            OnlineClientOperation operation = new OnlineClientOperation(ClientGrid);

            client = await operation.ShowClient();
        }