public Task <MessageDialogResult> ShowYesNoCancelMessageAsync(string title,
                                                               string message,
                                                               DialogSettings settings = null)
 {
     if (settings == null)
     {
         settings = new DialogSettings();
     }
     settings.AffirmativeButtonText    = this.L("common", "yes");
     settings.NegativeButtonText       = this.L("common", "no");
     settings.FirstAuxiliaryButtonText = this.L("common", "cancel");
     return(this.ShowMessageAsync(title, message, MessageDialogStyle.AffirmativeAndNegativeAndSingleAuxiliary, settings));
 }
 public Task ShowProgressAsync(string title,
                               ITask task,
                               bool isCancellable      = false,
                               DialogSettings settings = null)
 {
     settings = settings ?? new DialogSettings()
     {
         UseAnimationOnHide = false, UseAnimationOnShow = false
     };
     return(this.ShowProgressAsync(title, string.Empty, isCancellable, settings)
            .ContinueWith(t =>
     {
         Thread.Sleep(500);
         DialogManager.AssignTask(t.Result, task);
     }));
 }