From 520f0bda48113eafaf2d1c758afca77d33fa21ab Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Sun, 4 Feb 2024 12:47:18 +0000 Subject: [PATCH] move to selections --- Bloxstrap/Extensions/BootstrapperStyleEx.cs | 11 +++++++++++ Bloxstrap/UI/ViewModels/Menu/AppearanceViewModel.cs | 11 +---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Bloxstrap/Extensions/BootstrapperStyleEx.cs b/Bloxstrap/Extensions/BootstrapperStyleEx.cs index b170629..0681e54 100644 --- a/Bloxstrap/Extensions/BootstrapperStyleEx.cs +++ b/Bloxstrap/Extensions/BootstrapperStyleEx.cs @@ -3,5 +3,16 @@ static class BootstrapperStyleEx { public static IBootstrapperDialog GetNew(this BootstrapperStyle bootstrapperStyle) => Frontend.GetBootstrapperDialog(bootstrapperStyle); + + public static IReadOnlyCollection Selections => new BootstrapperStyle[] + { + BootstrapperStyle.FluentDialog, + BootstrapperStyle.ProgressFluentDialog, + BootstrapperStyle.ProgressFluentAeroDialog, + BootstrapperStyle.ByfronDialog, + BootstrapperStyle.LegacyDialog2011, + BootstrapperStyle.LegacyDialog2008, + BootstrapperStyle.VistaDialog + }; } } diff --git a/Bloxstrap/UI/ViewModels/Menu/AppearanceViewModel.cs b/Bloxstrap/UI/ViewModels/Menu/AppearanceViewModel.cs index df430fb..2d8c94c 100644 --- a/Bloxstrap/UI/ViewModels/Menu/AppearanceViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Menu/AppearanceViewModel.cs @@ -65,16 +65,7 @@ namespace Bloxstrap.UI.ViewModels.Menu } } - public IEnumerable Dialogs { get; } = new BootstrapperStyle[] - { - BootstrapperStyle.FluentDialog, - BootstrapperStyle.ProgressFluentDialog, - BootstrapperStyle.ProgressFluentAeroDialog, - BootstrapperStyle.ByfronDialog, - BootstrapperStyle.LegacyDialog2011, - BootstrapperStyle.LegacyDialog2008, - BootstrapperStyle.VistaDialog - }; + public IEnumerable Dialogs { get; } = BootstrapperStyleEx.Selections; public BootstrapperStyle Dialog {