MeltdownBoxes 1.0.0
See the version list below for details.
dotnet add package MeltdownBoxes --version 1.0.0
NuGet\Install-Package MeltdownBoxes -Version 1.0.0
<PackageReference Include="MeltdownBoxes" Version="1.0.0" />
paket add MeltdownBoxes --version 1.0.0
#r "nuget: MeltdownBoxes, 1.0.0"
// Install MeltdownBoxes as a Cake Addin #addin nuget:?package=MeltdownBoxes&version=1.0.0 // Install MeltdownBoxes as a Cake Tool #tool nuget:?package=MeltdownBoxes&version=1.0.0
MeltdownBoxes
Description
MeltdownBoxes is a WPF library of alert and dialog boxes designed to enhance user interactions. With modern and user-friendly interfaces, it offers customizable alert boxes and dialogs that application developers can easily integrate into their projects.
Installation
To add this package to your project, you can follow the steps below:
Installation via NuGet
- Open Visual Studio.
- Open your project.
- From the Tools menu, select NuGet Package Manager, then click on Manage NuGet Packages for Solution....
- Go to the Browse tab and type
MeltdownBoxes
in the search box. - Select the package from the list and click the Install button.
- Accept the license agreement.
Manual Installation
If you prefer not to use NuGet, you can also install the package manually:
- Download the source code from the GitHub Repository.
- Right-click on your project references and select Add Reference....
- Choose the
.dll
file from theBin
folder of the downloaded package and add it.
Dependencies
To ensure the proper functioning of this package, .NET 8 or a higher version must be present in the project.
Once the installation is complete, you can easily create alert and dialog boxes using the BoxController
class.
Usage
Before using the BoxController
class, you need to Initialize the alert and dialog boxes separately. You do not need to Initialize the structure you do not wish to use. You can use the following code examples to set up the initial configurations:
BoxController.AlertBoxInitialize(
AlertSize.Medium,
AlertPlacement.Center,
);
BoxController.DialogBoxInitialize(
DialogSize.Large,
DialogPlacement.Center,
);
After this process, both AlertBox
and DialogBox
structures will be ready for use. If you proceed without performing these initializations, the methods will throw an error.
// Since dialog boxes are async structures, you must wait with await.
if(await BoxController.ConfirmedDialog("Do you want to proceed with this action?","Confirmation")){
MessageBox.Show("User continues.");
}
else{
MessageBox.Show("User does not continue.");
}
// AlertBoxes do not require a result, so you do not need to wait with await.
BoxController.Warning($"{DateTime.Now}", "Warning");
All variants you can use are shown below.
AlertBoxes
// ALL ALERTBOXES
Random random = new Random();
int randomNumber = random.Next(1, 6);
switch (randomNumber)
{
case 1:
BoxController.Warning($"{DateTime.Now}", "Warning");
break;
case 2:
BoxController.Error($"{DateTime.Now}", "Error");
break;
case 3:
BoxController.Success($"{DateTime.Now}", "Success");
break;
case 4:
BoxController.Information($"{DateTime.Now}", "Information");
break;
default:
BoxController.Other($"{DateTime.Now}", "Other");
break;
}
DialogBoxes
// ALL DIALOGBOXES
var x = await BoxController.ConfirmedDialog("test", "test");
var x1 = await BoxController.ContinueDialog("test", "test");
var x2 = await BoxController.RetryDialog("test", "test");
var x3 = await BoxController.WarningDialog("test", "test");
Contributing
MeltdownBoxes is presented as an open-source project. Therefore, anyone can contribute to the project and help enhance the features of MeltdownBoxes.
How to Contribute?
Developers who want to contribute to the project can visit the GitHub page and click the Fork
button to create a copy in their accounts. They can then clone the project copy to their computers to make changes.
After making changes, developers should commit their work and push it back to their GitHub page. Finally, they can submit a Pull Request
on the original GitHub page to integrate their changes into the original project.
How to Help?
Developers who want to help with the project can check the Issues
section on the GitHub page. This section lists the features and problems that need to be addressed for the project's development. Developers can contribute by solving these issues or developing new features.
Additionally, assistance can be provided in improving the project's documentation or adding new features. This can be done by downloading the project copy or editing the files on the GitHub page.
Contact
For any questions, suggestions, or feedback regarding the project, you can reach me at:
- Email: info@furkanozturklab.com
- X: @nakruf_oz
You can also share your issues or suggestions in the Issues
section on the project's GitHub page.
By reaching out to us, you can help improve the project. Your suggestions and feedback are important to us and contribute to making the project better.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. |
-
net8.0-windows7.0
- 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.
First publish