/// <summary> /// ブロックボタンを押したとき /// </summary> private async void Block() { var text = this.User.Name + "(@" + this.User.ScreenName + ")をブロックしますか?"; if (!Properties.Settings.Default.IsConfirmOfBlock || await this.Confirm(text) == MessageDialogResult.Affirmative) { var user = await AccountTokens.CreateBlockAsync(this.TimelineModel.TokenSuffix, this.Id); if (user != null) { CommonMethods.Notify(this.User.Name + "(@" + this.User.ScreenName + ")をブロックしました", MainWindow.NotificationType.Success); } else { CommonMethods.Notify(this.User.Name + "(@" + this.User.ScreenName + ")のブロックが正常に完了しませんでした", MainWindow.NotificationType.Error); } } }