Generated by DocFX

Interface IDialogService

Interface abstracting the interaction between view models and views when it comes to opening dialogs using the MVVM pattern in WPF.

Namespace: ISynergy.Framework.Mvvm.Abstractions.Services
Assembly: ISynergy.Framework.Mvvm.dll
Syntax
public interface IDialogService

Methods

View Source

ShowDialogAsync<TEntity>(IWindow, IViewModelDialog<TEntity>)

Shows the dialog asynchronous.

Declaration
Task ShowDialogAsync<TEntity>(IWindow dialog, IViewModelDialog<TEntity> viewmodel)
Parameters
Type Name Description
IWindow dialog

The window.

IViewModelDialog<TEntity> viewmodel

The viewmodel.

Returns
Type Description
Task

Task<System.Boolean>.

Type Parameters
Name Description
TEntity

The type of the t entity.

View Source

ShowDialogAsync<TEntity>(Type, IViewModelDialog<TEntity>)

Shows the dialog asynchronous.

Declaration
Task ShowDialogAsync<TEntity>(Type type, IViewModelDialog<TEntity> viewmodel)
Parameters
Type Name Description
Type type

The type.

IViewModelDialog<TEntity> viewmodel

The viewmodel.

Returns
Type Description
Task

Task<System.Boolean>.

Type Parameters
Name Description
TEntity

The type of the t entity.

View Source

ShowDialogAsync<TWindow, TViewModel, TEntity>()

Shows the dialog asynchronous.

Declaration
Task ShowDialogAsync<TWindow, TViewModel, TEntity>()
    where TWindow : IWindow where TViewModel : IViewModelDialog<TEntity>
Returns
Type Description
Task

Task{TEntity}.

Type Parameters
Name Description
TWindow

The type of the t window.

TViewModel

The type of the t view model.

TEntity

The type of the t entity.

View Source

ShowDialogAsync<TWindow, TViewModel, TEntity>(TEntity)

Shows the dialog asynchronous.

Declaration
Task ShowDialogAsync<TWindow, TViewModel, TEntity>(TEntity e)
    where TWindow : IWindow where TViewModel : IViewModelDialog<TEntity>
Parameters
Type Name Description
TEntity e

The selected item.

Returns
Type Description
Task

Task{TEntity}.

Type Parameters
Name Description
TWindow

The type of the t window.

TViewModel

The type of the t view model.

TEntity

The type of the t entity.

View Source

ShowErrorAsync(Exception, String)

Shows the error asynchronous.

Declaration
Task<MessageBoxResult> ShowErrorAsync(Exception error, string title = "")
Parameters
Type Name Description
Exception error

The error.

System.String title

The title.

Returns
Type Description
Task<MessageBoxResult>

Task<MessageBoxResult>.

View Source

ShowErrorAsync(String, String)

Shows the error asynchronous.

Declaration
Task<MessageBoxResult> ShowErrorAsync(string message, string title = "")
Parameters
Type Name Description
System.String message

The message.

System.String title

The title.

Returns
Type Description
Task<MessageBoxResult>

Task<MessageBoxResult>.

View Source

ShowGreetingAsync(String)

Shows the greeting asynchronous.

Declaration
Task ShowGreetingAsync(string name)
Parameters
Type Name Description
System.String name

The name.

Returns
Type Description
Task

Task.

View Source

ShowInformationAsync(String, String)

Shows the information asynchronous.

Declaration
Task<MessageBoxResult> ShowInformationAsync(string message, string title = "")
Parameters
Type Name Description
System.String message

The message.

System.String title

The title.

Returns
Type Description
Task<MessageBoxResult>

Task<MessageBoxResult>.

View Source

ShowMessageAsync(String, String, MessageBoxButton)

Shows message box asynchronous.

Declaration
Task<MessageBoxResult> ShowMessageAsync(string message, string title = "", MessageBoxButton buttons = default(MessageBoxButton))
Parameters
Type Name Description
System.String message

The message.

System.String title

The title.

MessageBoxButton buttons

The buttons.

Returns
Type Description
Task<MessageBoxResult>

Task<MessageBoxResult>.

View Source

ShowWarningAsync(String, String)

Shows the warning asynchronous.

Declaration
Task<MessageBoxResult> ShowWarningAsync(string message, string title = "")
Parameters
Type Name Description
System.String message

The message.

System.String title

The title.

Returns
Type Description
Task<MessageBoxResult>

Task<MessageBoxResult>.

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)