/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/TestUtilities2/Utilities/TestNotificationService.vb
35 строк
1 KB
Jonathon Marolf
update headers
23 янв 2020, 04:01
Не верифицирован
23 янв 2020, 04:01
91571a3
Код
Авторство
О чём код?
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Notification Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Utilities Friend Class TestNotificationService Implements INotificationService Public MessageText As String Public MessageTitle As String Public MessageSeverity As NotificationSeverity Public ConfirmBoxText As String Public ConfirmBoxTitle As String Public ConfirmBoxSeverity As NotificationSeverity Public DesiredConfirmBoxResult As Boolean Public Sub SendNotification(message As String, Optional title As String = Nothing, Optional severity As NotificationSeverity = NotificationSeverity.Warning) Implements INotificationService.SendNotification MessageText = message MessageTitle = title MessageSeverity = severity End Sub Public Function ConfirmMessageBox(message As String, Optional title As String = Nothing, Optional severity As NotificationSeverity = NotificationSeverity.Warning) As Boolean Implements INotificationService.ConfirmMessageBox ConfirmBoxText = message ConfirmBoxTitle = title ConfirmBoxSeverity = severity Return DesiredConfirmBoxResult End Function End Class End Namespace