Skip to content

Commit

Permalink
Merge pull request #92 from Krypton-Suite/versioon-next-notifications
Browse files Browse the repository at this point in the history
Update KryptonToastNotification.cs
  • Loading branch information
Wagnerp committed Apr 7, 2021
2 parents 2153420 + f8831a6 commit a7c65e9
Showing 1 changed file with 34 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,13 @@ public Image IconImage
#endregion

#region Constructors
public KryptonToastNotification(bool fade, Image icon, string headerText, string contentText, bool showControlBox = true)
/// <summary>Initializes a new instance of the <see cref="KryptonToastNotification" /> class.</summary>
/// <param name="fade">if set to <c>true</c> [fade].</param>
/// <param name="icon">The icon.</param>
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="showControlBox">if set to <c>true</c> [show control box].</param>
public KryptonToastNotification(bool fade, Image icon, string headerText, string contentText, bool showControlBox = false)
{
InitializeComponent();

Expand All @@ -296,7 +302,13 @@ public KryptonToastNotification(bool fade, Image icon, string headerText, string
ControlBox = showControlBox;
}

public KryptonToastNotification(bool fade, IconType iconType, string headerText, string contentText, bool showControlBox = true)
/// <summary>Initializes a new instance of the <see cref="KryptonToastNotification" /> class.</summary>
/// <param name="fade">if set to <c>true</c> [fade].</param>
/// <param name="iconType">Type of the icon.</param>
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="showControlBox">if set to <c>true</c> [show control box].</param>
public KryptonToastNotification(bool fade, IconType iconType, string headerText, string contentText, bool showControlBox = false)
{
InitializeComponent();

Expand Down Expand Up @@ -364,7 +376,8 @@ public KryptonToastNotification(bool fade, IconType iconType, string headerText,
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="seconds">The seconds.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, int seconds, bool showControlBox = true) : this(fade, image, headerText, contentText, showControlBox)
/// <param name="showControlBox">Displays the close button.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, int seconds, bool showControlBox = false) : this(fade, image, headerText, contentText, showControlBox)
{
Seconds = seconds;
}
Expand All @@ -378,7 +391,8 @@ public KryptonToastNotification(bool fade, Image image, string headerText, strin
/// <param name="contentText">The content text.</param>
/// <param name="seconds">The seconds.</param>
/// <param name="soundPath">The sound path.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, int seconds, string soundPath, bool showControlBox = true) : this(fade, image, headerText, contentText, seconds, showControlBox)
/// <param name="showControlBox">Displays the close button.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, int seconds, string soundPath, bool showControlBox = false) : this(fade, image, headerText, contentText, seconds, showControlBox)
{
SoundPath = soundPath;
}
Expand All @@ -391,7 +405,8 @@ public KryptonToastNotification(bool fade, Image image, string headerText, strin
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="soundPath">The sound path.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, string soundPath, bool showControlBox = true) : this(fade, image, headerText, contentText, showControlBox)
/// <param name="showControlBox">Displays the close button.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, string soundPath, bool showControlBox = false) : this(fade, image, headerText, contentText, showControlBox)
{
SoundPath = soundPath;
}
Expand All @@ -404,7 +419,8 @@ public KryptonToastNotification(bool fade, Image image, string headerText, strin
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="soundStream">The sound stream.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, Stream soundStream, bool showControlBox = true) : this(fade, image, headerText, contentText, showControlBox)
/// <param name="showControlBox">Displays the close button.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, Stream soundStream, bool showControlBox = false) : this(fade, image, headerText, contentText, showControlBox)
{
SoundStream = soundStream;
}
Expand All @@ -418,7 +434,8 @@ public KryptonToastNotification(bool fade, Image image, string headerText, strin
/// <param name="contentText">The content text.</param>
/// <param name="seconds">The seconds.</param>
/// <param name="soundStream">The sound stream.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, int seconds, Stream soundStream, bool showControlBox = true) : this(fade, image, headerText, contentText, seconds, showControlBox)
/// <param name="showControlBox">Displays the close button.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, int seconds, Stream soundStream, bool showControlBox = false) : this(fade, image, headerText, contentText, seconds, showControlBox)
{
SoundStream = soundStream;
}
Expand All @@ -433,8 +450,9 @@ public KryptonToastNotification(bool fade, Image image, string headerText, strin
/// <param name="showActionButton">if set to <c>true</c> [show action button].</param>
/// <param name="actionType">Type of the action.</param>
/// <param name="processName">Name of the process.</param>
/// <param name="showControlBox">if set to <c>true</c> [show control box].</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, ActionButtonLocation actionButtonLocation, bool showActionButton, ActionType actionType, string processName, bool showControlBox = true) : this(fade, image, headerText, contentText, showControlBox)
/// <param name="actionButtonLocation">The placement of the action button.</param>
/// <param name="showControlBox">Displays the close button.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, ActionButtonLocation actionButtonLocation, bool showActionButton, ActionType actionType, string processName, bool showControlBox = false) : this(fade, image, headerText, contentText, showControlBox)
{
ButtonLocation = actionButtonLocation;

Expand All @@ -447,33 +465,36 @@ public KryptonToastNotification(bool fade, Image image, string headerText, strin
SetActionText(actionType);
}

/// <summary>Initializes a new instance of the <see cref="KryptonToastNotification"/> class.</summary>

/// <summary>Initializes a new instance of the <see cref="KryptonToastNotification" /> class.</summary>
/// <param name="fade">if set to <c>true</c> [fade].</param>
/// <param name="image">The image.</param>
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="actionButtonLocation">The action button location.</param>
/// <param name="showActionButton">if set to <c>true</c> [show action button].</param>
/// <param name="actionType">Type of the action.</param>
/// <param name="processName">Name of the process.</param>
/// <param name="showControlBox">if set to <c>true</c> [show control box].</param>
/// <param name="cornerRadius">The corner radius.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, ActionButtonLocation actionButtonLocation, bool showActionButton, ActionType actionType, string processName, bool showControlBox = true, int cornerRadius = -1) : this(fade, image, headerText, contentText, actionButtonLocation, showActionButton, actionType, processName, showControlBox)
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, ActionButtonLocation actionButtonLocation, bool showActionButton, ActionType actionType, string processName, bool showControlBox = false, int cornerRadius = -1) : this(fade, image, headerText, contentText, actionButtonLocation, showActionButton, actionType, processName, showControlBox)
{
CornerRadius = cornerRadius;
}

/// <summary>Initializes a new instance of the <see cref="KryptonToastNotification"/> class.</summary>
/// <summary>Initializes a new instance of the <see cref="KryptonToastNotification" /> class.</summary>
/// <param name="fade">if set to <c>true</c> [fade].</param>
/// <param name="image">The image.</param>
/// <param name="headerText">The header text.</param>
/// <param name="contentText">The content text.</param>
/// <param name="actionButtonLocation">The action button location.</param>
/// <param name="showActionButton">if set to <c>true</c> [show action button].</param>
/// <param name="actionType">Type of the action.</param>
/// <param name="processName">Name of the process.</param>
/// <param name="showControlBox">if set to <c>true</c> [show control box].</param>
/// <param name="cornerRadius">The corner radius.</param>
/// <param name="borders">The borders.</param>
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, ActionButtonLocation actionButtonLocation, bool showActionButton, ActionType actionType, string processName, bool showControlBox = true, int cornerRadius = -1, PaletteDrawBorders borders = PaletteDrawBorders.All) : this(fade, image, headerText, contentText, actionButtonLocation, showActionButton, actionType, processName, showControlBox)
public KryptonToastNotification(bool fade, Image image, string headerText, string contentText, ActionButtonLocation actionButtonLocation, bool showActionButton, ActionType actionType, string processName, bool showControlBox = false, int cornerRadius = -1, PaletteDrawBorders borders = PaletteDrawBorders.All) : this(fade, image, headerText, contentText, actionButtonLocation, showActionButton, actionType, processName, showControlBox)
{
PaletteDrawBorders = borders;
}
Expand Down

0 comments on commit a7c65e9

Please sign in to comment.