Beispiel #1
0
        System.Windows.MessageBoxResult TranslateResult(MessageBoxResult result)
        {
            switch (result)
            {
            case MessageBoxResult.OK: return(System.Windows.MessageBoxResult.OK);

            case MessageBoxResult.Cancel: return(System.Windows.MessageBoxResult.Cancel);

            case MessageBoxResult.Yes: return(System.Windows.MessageBoxResult.Yes);

            case MessageBoxResult.No: return(System.Windows.MessageBoxResult.No);

            default: return(System.Windows.MessageBoxResult.None);
            }
        }
Beispiel #2
0
 public MessageBoxResult Show(string message, string title, MessageBoxButton button, MessageBoxImage image, MessageBoxResult defaultResult)
 {
     return(TranslateResultBack(DXMessageBox.Show(null, message, title, TranslateButton(button), TranslateImage(image), TranslateResult(defaultResult))));
 }