Esempio n. 1
0
        private bool ValidateProperties()
        {
            string error;

            if (!Templates.ValidateProperties(out error))
            {
                DialogHelper.BlockingMessageBox(DispatcherService.Create(), error, EditorPath.EditorTitle, MessageBoxButton.OK, MessageBoxImage.Error);
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
 public MessageBoxResult BlockingMessageBox(string message, MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None)
 {
     return(DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image));
 }
Esempio n. 3
0
 public int BlockingMessageBox(string message, IEnumerable <DialogButtonInfo> buttons, MessageBoxImage image = MessageBoxImage.None)
 {
     return(DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image));
 }
Esempio n. 4
0
 public MessageBoxResult BlockingMessageBox(string message, IEnumerable <DialogButtonInfo> buttons, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return(DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image, owner));
 }