public static async Task <string> ShowDialogAsync(this IViewAware screen, string title, string message, MetroDialogSettings dialogSettings = null) { return(await screen.GetMetroWindowFromScreen().ShowInputAsync(title, message, dialogSettings)); }
public static async Task <ProgressDialogController> ShowProgressAsync(this IViewAware screen, string title, string message, bool isCancellable = false, MetroDialogSettings dialogSettings = null) { return(await screen.GetMetroWindowFromScreen().ShowProgressAsync(title, message, isCancellable, dialogSettings)); }
/// <summary> Safe implementation to show messages from viewmodels </summary> public static async Task <MessageDialogResult> ShowMessageAsync(this IViewAware screen, string title, string message, MessageDialogStyle messageDialogStyle = MessageDialogStyle.Affirmative, MetroDialogSettings dialogSettings = null) { return(await screen.GetMetroWindowFromScreen().ShowMessageAsync(title, message, messageDialogStyle, dialogSettings)); }