Esempio n. 1
0
        System.Windows.MessageBoxImage TranslateImage(MessageBoxImage image)
        {
            switch (image)
            {
            case MessageBoxImage.Asterisk: return(System.Windows.MessageBoxImage.Asterisk);

            case MessageBoxImage.Error: return(System.Windows.MessageBoxImage.Error);

            case MessageBoxImage.Question: return(System.Windows.MessageBoxImage.Question);

            case MessageBoxImage.Warning: return(System.Windows.MessageBoxImage.Warning);

            default: return(System.Windows.MessageBoxImage.None);
            }
        }
Esempio n. 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))));
 }