private static MessageBoxResult InlineShow(Window owner, IAProMessageBox messageBox) { if (messageBox.NeedOwner) { if (owner != null) { messageBox.Owner = owner; } else if (messageBox.Owner != WindowHelper.MainFrame) { messageBox.Owner = WindowHelper.MainFrame; } } if (messageBox.MessageBoxImage == MessageBoxImage.None) { messageBox.MessageBoxImage = MessageBoxImage.Asterisk; } messageBox.Init(); if (messageBox.DoModel) { messageBox.ShowDialog(); } else { messageBox.Show(); } return(messageBox.MessageBoxResult); }
public static void ShowNormal(string messageBoxText) { IAProMessageBox bamaMessageBox = new IAProMessageBox { MessageBoxText = messageBoxText, DoModel = false, NeedOwner = false }; InlineShow(null, bamaMessageBox); }
public static MessageBoxResult Show(Window owner, InlineCollection inlines, string caption, MessageBoxButton messageBoxButton, MessageBoxImage messageBoxImage) { IAProMessageBox bamaMessageBox = new IAProMessageBox { Inlines = inlines, Caption = caption, MessageBoxButton = messageBoxButton, MessageBoxImage = messageBoxImage }; return(InlineShow(owner, bamaMessageBox)); }
public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon) { IAProMessageBox bamaMessageBox = new IAProMessageBox { MessageBoxText = messageBoxText, Caption = caption, MessageBoxButton = button, MessageBoxImage = icon }; return(InlineShow(owner, bamaMessageBox)); }
public static MessageBoxResult Show(Window owner, InlineCollection inlines, string caption, MessageBoxButton messageBoxButton, MessageBoxImage messageBoxImage) { IAProMessageBox bamaMessageBox = new IAProMessageBox { Inlines = inlines, Caption = caption, MessageBoxButton = messageBoxButton, MessageBoxImage = messageBoxImage }; return InlineShow(owner, bamaMessageBox); }
public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon) { IAProMessageBox bamaMessageBox = new IAProMessageBox { MessageBoxText = messageBoxText, Caption = caption, MessageBoxButton = button, MessageBoxImage = icon }; return InlineShow(owner, bamaMessageBox); }
private static MessageBoxResult InlineShow(Window owner, IAProMessageBox messageBox) { if (messageBox.NeedOwner) { if (owner != null) { messageBox.Owner = owner; } else if (messageBox.Owner != WindowHelper.MainFrame) { messageBox.Owner = WindowHelper.MainFrame; } } if (messageBox.MessageBoxImage == MessageBoxImage.None) { messageBox.MessageBoxImage = MessageBoxImage.Asterisk; } messageBox.Init(); if (messageBox.DoModel) { messageBox.ShowDialog(); } else { messageBox.Show(); } return messageBox.MessageBoxResult; }