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))); }
public DialogResult ShowMessageBox(MessageBoxConfigModel config) { return(Application.Invoke(() => MessageBox.Show(parent, config.Message, config.Title, config.Buttons))); }