Implemented the MessageBoxAction.Invoke method