move to selections

This commit is contained in:
bluepilledgreat 2024-02-04 12:47:18 +00:00
parent 150e3d6de4
commit 520f0bda48
2 changed files with 12 additions and 10 deletions

View File

@ -3,5 +3,16 @@
static class BootstrapperStyleEx
{
public static IBootstrapperDialog GetNew(this BootstrapperStyle bootstrapperStyle) => Frontend.GetBootstrapperDialog(bootstrapperStyle);
public static IReadOnlyCollection<BootstrapperStyle> Selections => new BootstrapperStyle[]
{
BootstrapperStyle.FluentDialog,
BootstrapperStyle.ProgressFluentDialog,
BootstrapperStyle.ProgressFluentAeroDialog,
BootstrapperStyle.ByfronDialog,
BootstrapperStyle.LegacyDialog2011,
BootstrapperStyle.LegacyDialog2008,
BootstrapperStyle.VistaDialog
};
}
}

View File

@ -65,16 +65,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
}
}
public IEnumerable<BootstrapperStyle> Dialogs { get; } = new BootstrapperStyle[]
{
BootstrapperStyle.FluentDialog,
BootstrapperStyle.ProgressFluentDialog,
BootstrapperStyle.ProgressFluentAeroDialog,
BootstrapperStyle.ByfronDialog,
BootstrapperStyle.LegacyDialog2011,
BootstrapperStyle.LegacyDialog2008,
BootstrapperStyle.VistaDialog
};
public IEnumerable<BootstrapperStyle> Dialogs { get; } = BootstrapperStyleEx.Selections;
public BootstrapperStyle Dialog
{