/// <summary> /// ユーザーのブロックを解除する /// </summary> private async void DestroyBlock() { var text = this.Name + "(@" + this.ScreenName + ")のブロックを解除しますか?"; if (!Properties.Settings.Default.IsConfirmOfDestroyBlock || await this.Confirm(text) == MessageDialogResult.Affirmative) { var user = await AccountTokens.DestroyBlockAsync(this.TimelineModel.TokenSuffix, this.Id); if (user != null) { CommonMethods.Notify(this.Name + "(@" + this.ScreenName + ")のブロックを解除しました", MainWindow.NotificationType.Success); this.LoadRelationship(user); } else { CommonMethods.Notify(this.Name + "(@" + this.ScreenName + ")のブロック解除が正常に完了しませんでした", MainWindow.NotificationType.Error); } } }