예제 #1
0
 public static async Task <string> ShowDialogAsync(this IViewAware screen, string title, string message,
                                                   MetroDialogSettings dialogSettings = null)
 {
     return(await screen.GetMetroWindowFromScreen().ShowInputAsync(title, message, dialogSettings));
 }
예제 #2
0
 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));
 }
예제 #3
0
 /// <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));
 }