GARbro-mirror/ArcFormats/WidgetNPA.xaml.cs
2014-08-03 10:48:08 +04:00

27 lines
741 B
C#

using System.Windows;
using System.Windows.Controls;
using System.Linq;
using GameRes.Formats.Properties;
namespace GameRes.Formats.GUI
{
/// <summary>
/// Interaction logic for WidgetNPA.xaml
/// </summary>
public partial class WidgetNPA : Grid
{
public WidgetNPA ()
{
InitializeComponent();
var sorted = NpaOpener.KnownSchemes.Skip (1).OrderBy (x => x);
Scheme.ItemsSource = NpaOpener.KnownSchemes.Take(1).Concat (sorted);
Scheme.SelectedItem = NpaOpener.KnownSchemes[(int)Settings.Default.NPAScheme];
}
public string GetScheme()
{
return Scheme.SelectedItem as string;
}
}
}