mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Update groups finally implemented
Code cleanup
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using ModernKeePass.Domain.Enums;
|
||||
|
||||
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
|
||||
|
||||
@@ -10,7 +11,7 @@ namespace ModernKeePass.Views.UserControls
|
||||
{
|
||||
public sealed partial class SymbolPickerUserControl
|
||||
{
|
||||
public IEnumerable<Symbol> Symbols { get; }
|
||||
public List<Symbol> Symbols { get; }
|
||||
|
||||
public Symbol SelectedSymbol
|
||||
{
|
||||
@@ -27,7 +28,12 @@ namespace ModernKeePass.Views.UserControls
|
||||
public SymbolPickerUserControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
Symbols = Enum.GetValues(typeof(Symbol)).Cast<Symbol>();
|
||||
Symbols = new List<Symbol>();
|
||||
var names = Enum.GetNames(typeof(Icon));
|
||||
foreach (var name in names)
|
||||
{
|
||||
Symbols.Add((Symbol) Enum.Parse(typeof(Symbol), name));
|
||||
}
|
||||
}
|
||||
|
||||
private void ComboBox_OnLoaded(object sender, RoutedEventArgs e)
|
||||
|
Reference in New Issue
Block a user