示例#1
0
 private bool PromptForPreviewOutOfBrowserToggle()
 {
     return(ServiceExtensions.MessageDisplayService(this.Services).ShowMessage(new MessageBoxArgs()
     {
         Message = StringTable.UsePlatformExtensionsCommandPreviewOutOfBrowserEnabledWarningMessage,
         Button = MessageBoxButton.YesNo,
         Image = MessageBoxImage.Exclamation
     }) == MessageBoxResult.Yes);
 }
示例#2
0
 private bool PromptForPlatformExtensionsToggle()
 {
     return(ServiceExtensions.MessageDisplayService(this.Services).ShowMessage(new MessageBoxArgs()
     {
         Message = StringTable.PreviewOutOfBrowserCommandUsePlatformExtensionsEnabledWarning,
         Button = MessageBoxButton.YesNo,
         Image = MessageBoxImage.Exclamation,
         AutomationId = "TogglePlatformExtensionsDialog"
     }) == MessageBoxResult.Yes);
 }