2015-09-18 01:27:53 +04:00
|
|
|
|
using GameRes.Formats.Entis;
|
|
|
|
|
using GameRes.Formats.Strings;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Controls;
|
2015-05-27 13:57:34 +04:00
|
|
|
|
|
|
|
|
|
namespace GameRes.Formats.GUI
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for WidgetNOA.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class WidgetNOA : Grid
|
|
|
|
|
{
|
|
|
|
|
public WidgetNOA ()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent ();
|
2015-11-23 21:28:32 +04:00
|
|
|
|
var keys = new string[] { arcStrings.ArcIgnoreEncryption };
|
2015-09-18 01:27:53 +04:00
|
|
|
|
Scheme.ItemsSource = keys.Concat (NoaOpener.KnownKeys.Keys.OrderBy (x => x));
|
2015-05-27 13:57:34 +04:00
|
|
|
|
// select first scheme as default
|
|
|
|
|
if (-1 == Scheme.SelectedIndex)
|
|
|
|
|
Scheme.SelectedIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|