Exemple #1
0
        public DialogResult ShowMessageBox(MessageBoxConfigModel config)
        {
            var msgBox = windowFactory.CreateMessageBox();

            msgBox.Title   = config.Title;
            msgBox.Message = config.Message;
            msgBox.Buttons = config.Buttons;

            return(Application.Invoke(() => msgBox.Show(parent)));
        }
Exemple #2
0
 public DialogResult ShowMessageBox(MessageBoxConfigModel config)
 {
     return(Application.Invoke(() => MessageBox.Show(parent, config.Message, config.Title, config.Buttons)));
 }