/// <summary> /// The Copy-Constructor. /// </summary> /// <param name="source">the MessageBoxDefaultConfiguration object to copy the values from</param> public MessageBoxDefaultConfiguration(MessageBoxDefaultConfiguration source) { this._backgroundTexture = source.BackgroundTexture; this._defaultCaptionForUserMistakes = source.DefaultCaptionForUserMistakes; this._defaultCaptionForErrors = source.DefaultCaptionForErrors; this._defaultSummaryTextForErrors = source.DefaultSummaryTextForErrors; this._isCustomButtonStyles = source.IsCustomButtonStyles; this._isSoundEnabled = source.IsSoundEnabled; this._isTopmostWindowByDefault = source.IsTopmostWindowByDefault; this._isTouch = source.IsTouch; this._isUsingAeroGlassEffect = source.IsUsingAeroGlassEffect; this._isUsingNewerIcons = source.IsUsingNewerIcons; this._isUsingNewerSoundScheme = source.IsUsingNewerSoundScheme; this._defaultTimeout = source._defaultTimeout; this._defaultTimeoutForErrors = source._defaultTimeoutForErrors; this._defaultTimeoutForMistakes = source._defaultTimeoutForMistakes; this._defaultTimeoutForQuestions = source._defaultTimeoutForQuestions; this._defaultTimeoutForWarnings = source._defaultTimeoutForWarnings; }
/// <summary> /// Set the options to use by default for subsequent invocations of a message-box. /// </summary> /// <param name="defaultConfiguration">The default options to set (the MessageType property is ignored)</param> public static void SetDefaultConfiguration(MessageBoxDefaultConfiguration defaultConfiguration) { DefaultConfiguration = defaultConfiguration; }