Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DialogService"/> class.
 /// </summary>
 /// <param name="contentDialogFactory">
 /// Factory responsible for creating content dialogs.
 /// </param>
 /// <param name="contentDialogTypeLocator">
 /// Interface responsible for finding a dialog type matching a view model.
 /// </param>
 public DialogService(
     IContentDialogFactory contentDialogFactory,
     IDialogTypeLocator contentDialogTypeLocator = null)
 {
     this.contentDialogFactory     = contentDialogFactory ?? throw new ArgumentNullException(nameof(contentDialogFactory));
     this.contentDialogTypeLocator = contentDialogTypeLocator ?? throw new ArgumentNullException(nameof(contentDialogTypeLocator));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DialogService"/> class.
 /// </summary>
 /// <param name="contentDialogFactory">
 /// Factory responsible for creating content dialogs.
 /// </param>
 /// <remarks>
 /// By default <see cref="NamingConventionDialogTypeLocator"/> is used as dialog type
 /// locator.
 /// </remarks>
 public DialogService(IContentDialogFactory contentDialogFactory)
     : this(contentDialogFactory, new NamingConventionDialogTypeLocator())
 {
 }