예제 #1
0
 public static WPFMessageBoxResult Show(string title, string message, string details, WPFMessageBoxButtons buttonOption, WPFMessageBoxImage image)
 {
     ___MessageBox = new WPFMessageBox();
     MessageBoxViewModel __ViewModel = new MessageBoxViewModel(___MessageBox, title, message, details, buttonOption, image);
     ___MessageBox.DataContext = __ViewModel;
     ___MessageBox.ShowDialog();
     return ___MessageBox.Result;
 }
예제 #2
0
 public MessageBoxViewModel(WPFMessageBox view,
     string title, string message, string innerMessage,
     WPFMessageBoxButtons buttonOption, WPFMessageBoxImage image)
 {
     Title = title;
     Message = message;
     InnerMessageDetails = innerMessage;
     SetButtonVisibility(buttonOption);
     SetImageSource(image);
     ___View = view;
 }