예제 #1
0
 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);
 }
예제 #2
0
        public static void ShowNormal(string messageBoxText)
        {
            IAProMessageBox bamaMessageBox = new IAProMessageBox
            {
                MessageBoxText = messageBoxText,
                DoModel        = false,
                NeedOwner      = false
            };

            InlineShow(null, bamaMessageBox);
        }
예제 #3
0
        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));
        }
예제 #4
0
        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));
        }
예제 #5
0
 public static void ShowNormal(string messageBoxText)
 {
     IAProMessageBox bamaMessageBox = new IAProMessageBox
     {
         MessageBoxText = messageBoxText,
         DoModel = false,
         NeedOwner = false
     };
     InlineShow(null, bamaMessageBox);
 }
예제 #6
0
 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);
 }
예제 #7
0
 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);
 }
예제 #8
0
 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;
 }