mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 10:31:26 -07:00
23 lines
802 B
C#
23 lines
802 B
C#
using Bloxstrap.Dialogs;
|
|
using Bloxstrap.Enums;
|
|
|
|
namespace Bloxstrap.Extensions
|
|
{
|
|
static class BootstrapperStyleEx
|
|
{
|
|
public static IBootstrapperDialog GetNew(this BootstrapperStyle bootstrapperStyle)
|
|
{
|
|
return bootstrapperStyle switch
|
|
{
|
|
BootstrapperStyle.VistaDialog => new VistaDialog(),
|
|
BootstrapperStyle.LegacyDialog2009 => new LegacyDialog2009(),
|
|
BootstrapperStyle.LegacyDialog2011 => new LegacyDialog2011(),
|
|
BootstrapperStyle.ProgressDialog => new ProgressDialog(),
|
|
BootstrapperStyle.FluentDialog => new FluentDialog(),
|
|
BootstrapperStyle.HyperionDialog => new HyperionDialog(),
|
|
_ => new FluentDialog()
|
|
};
|
|
}
|
|
}
|
|
}
|