protected virtual bool?GetConfirmationFromUIDialog()
        {
            IResultProvider dialog = this.UIDialogConstructor();

            if (dialog == null)
            {
                return(null);
            }
            INotificationResultCourier resultCourier = this.LordOfNotifications.DisplayNotification(dialog);
            NotificationResult         result        = resultCourier.GetResultWithWait();

            if (result.Code == ResultCode.OK || result.Code == ResultCode.Yes)
            {
                return(true);
            }
            if (result.Code == ResultCode.Close || result.Code == ResultCode.No)
            {
                return(false);
            }
            if (result.Code == ResultCode.PermanentlyClose)
            {
                this.ConfirmationSetting.Value = false;
            }
            return(null);
        }
        public ResultCode ShowConfirmDialog(string infoToDisplay)
        {
            IYesNoNotification notification = this.LordOfNotifications.CreateYesNoNotification(infoToDisplay);

            notification.HeaderTextOptions.Size = 14;
            INotificationResultCourier resultCourier = this.LordOfNotifications.DisplayNotification(notification);

            return(resultCourier.GetResultWithWait().Code);
        }