SieBRUM.FancyAlerts
1.1.0.6
dotnet add package SieBRUM.FancyAlerts --version 1.1.0.6
NuGet\Install-Package SieBRUM.FancyAlerts -Version 1.1.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SieBRUM.FancyAlerts" Version="1.1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SieBRUM.FancyAlerts --version 1.1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SieBRUM.FancyAlerts, 1.1.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SieBRUM.FancyAlerts as a Cake Addin #addin nuget:?package=SieBRUM.FancyAlerts&version=1.1.0.6 // Install SieBRUM.FancyAlerts as a Cake Tool #tool nuget:?package=SieBRUM.FancyAlerts&version=1.1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Brum Fancy Notifications
API to add basic but fancy notifications to your WinForms application.
Installation
Add this package to your WinForms project.
Usage
Example form
using BrumCustomAlerts;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ExampleNamespace
{
public class MyForm : Form
{
public MyForm()
{
InitializeComponent();
}
private void openAlertButton_Click(object sender, EventArgs e)
{
BrumAlertFactory.OpenAlert("This is a success notification!", AlertType.Success, 5000, AlertLocation.TopLeft);
}
}
}
Possible function calls
// Default success notification
BrumAlertFactory.OpenAlert("This is a success notification!", AlertType.Success);
// Default error notification with custom life time and pre-set location
BrumAlertFactory.OpenAlert("This is an error notification!", AlertType.Error, 5000, AlertLocation.BottomRight);
// Info box with custom colors, but using the default info icon
BrumAlertFactory.OpenAlert("This is an info notification!",Color.Yellow, Color.Black, AlertType.Info, 5000, AlertLocation.TopLeft);
// Completely custom notification with default life time
BrumAlertFactory.OpenAlert("My custom notification!", Color.WhiteSmoke, Color.Red, myImage, alertLocation: AlertLocation.BottomRight);
Demo
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Summary of changes made in this release of the package.