GARbro-mirror/ArcFormats/WidgetNPA.xaml.cs

27 lines
741 B
C#
Raw Normal View History

2014-07-22 03:26:28 +08:00
using System.Windows;
using System.Windows.Controls;
2014-08-03 14:48:08 +08:00
using System.Linq;
2014-07-27 03:11:24 +08:00
using GameRes.Formats.Properties;
2014-07-22 03:26:28 +08:00
namespace GameRes.Formats.GUI
{
/// <summary>
/// Interaction logic for WidgetNPA.xaml
/// </summary>
public partial class WidgetNPA : Grid
{
2014-07-27 03:11:24 +08:00
public WidgetNPA ()
2014-07-22 03:26:28 +08:00
{
InitializeComponent();
2014-08-03 14:48:08 +08:00
var sorted = NpaOpener.KnownSchemes.Skip (1).OrderBy (x => x);
Scheme.ItemsSource = NpaOpener.KnownSchemes.Take(1).Concat (sorted);
2014-07-27 03:11:24 +08:00
Scheme.SelectedItem = NpaOpener.KnownSchemes[(int)Settings.Default.NPAScheme];
2014-07-22 03:26:28 +08:00
}
public string GetScheme()
{
return Scheme.SelectedItem as string;
}
}
}