Exemple #1
0
        System.Windows.MessageBoxButton TranslateButton(MessageBoxButton button)
        {
            switch (button)
            {
            case MessageBoxButton.YesNo: return(System.Windows.MessageBoxButton.YesNo);

            case MessageBoxButton.YesNoCancel: return(System.Windows.MessageBoxButton.YesNoCancel);

            case MessageBoxButton.OKCancel: return(System.Windows.MessageBoxButton.OKCancel);

            default: return(System.Windows.MessageBoxButton.OK);
            }
        }
Exemple #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))));
 }