/// <summary>
 /// The Copy-Constructor. This does NOT copy the SummaryText or DetailText.
 /// </summary>
 /// <param name="source">the JhMessageBoxOptions object to copy the values from</param>
 public JhMessageBoxOptions(JhMessageBoxOptions source)
 {
     this._backgroundTexture = source.BackgroundTexture;
     this._buttonFlags = source._buttonFlags;
     //            this._captionPrefix = source.CaptionPrefix;
     this._captionAfterPrefix = source.CaptionAfterPrefix;
     this._captionForUserMistakes = source.CaptionForUserMistakes;
     this._isCustomButtonStyles = source.IsCustomButtonStyles;
     this._isSoundEnabled = source.IsSoundEnabled;
     this._isToCenterOverParent = source.IsToCenterOverParent;
     this._isToBeTopmostWindow = source.IsToBeTopmostWindow;
     this._isTouch = source.IsTouch;
     this._isUsingAeroGlassEffect = source.IsUsingAeroGlassEffect;
     this._isUsingNewerIcons = source.IsUsingNewerIcons;
     this._isUsingNewerSoundScheme = source.IsUsingNewerSoundScheme;
     this._messageType = source.MessageType;
     this._timeoutPeriodInSeconds = source.TimeoutPeriodInSeconds;
     this._timeoutPeriodForUserMistakes = source.TimeoutPeriodForUserMistakes;
 }
Beispiel #2
0
 /// <summary>
 /// Set one (or none) out of a set of predefined background images for the message-box window. Default is None.
 /// </summary>
 /// <param name="imageToUse">Which of the predefined images to use for the background texture</param>
 /// <returns>a reference to this same object such that other method-calls may be chained</returns>
 public JhMessageBoxOptions SetBackgroundTexture(JhMessageBoxBackgroundTexture imageToUse)
 {
     _backgroundTexture = imageToUse;
     return(this);
 }