Exemple #1
0
        private async void doShowUserStatus(TwitterUser user)
        {
            using (var userDialog = new UserInfoDialog(this, this.tw))
            {
                var showUserTask = userDialog.ShowUserAsync(user);
                userDialog.ShowDialog(this);

                this.Activate();
                this.BringToFront();

                // ユーザー情報の表示が完了するまで userDialog を破棄しない
                await showUserTask;
            }
        }
Exemple #2
0
 private void doShowUserStatus(TwitterDataModel.User user)
 {
     using (var userinfo = new UserInfoDialog())
     {
         userinfo.Owner = this;
         userinfo.DisplayUser = user;
         userinfo.ShowDialog(this);
         this.Activate();
         this.BringToFront();
     }
 }