DarkUI.Net5/Example/Forms/MainForm.cs
Robin a0d9e343e9 Static message box methods
Added static methods for showing specific types of message boxes more
easily.
2015-09-18 11:45:59 +01:00

23 lines
625 B
C#

using DarkUI;
namespace Example
{
public partial class MainForm : DarkForm
{
public MainForm()
{
InitializeComponent();
btnDialog.Click += delegate
{
DarkMessageBox.ShowError("This is an error", "Dark UI - Example");
};
btnMessageBox.Click += delegate
{
DarkMessageBox.ShowInformation("This is some information, except it is much bigger, so there we go. I wonder how this is going to go. I hope it resizes properly. It probably will.", "Dark UI - Example");
};
}
}
}