GARbro-mirror/ArcFormats/WidgetNPA.xaml.cs
morkt 8697257e79 implemented Nitro+ archives creation.
encryption not implemented yet.
2014-08-18 09:07:35 +04:00

27 lines
817 B
C#

using System.Windows;
using System.Windows.Controls;
using System.Linq;
using GameRes.Formats.Properties;
using GameRes.Formats.NitroPlus;
namespace GameRes.Formats.GUI
{
/// <summary>
/// Interaction logic for WidgetNPA.xaml
/// </summary>
public partial class WidgetNPA : Grid
{
public WidgetNPA ()
{
var selected = Settings.Default.NPAScheme;
InitializeComponent();
var sorted = NpaOpener.KnownSchemes.Skip (1).OrderBy (x => x);
Scheme.ItemsSource = NpaOpener.KnownSchemes.Take(1).Concat (sorted);
if (NpaTitleId.NotEncrypted == NpaOpener.GetTitleId (selected))
Scheme.SelectedIndex = 0;
else
Scheme.SelectedValue = selected;
}
}
}