using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using GameRes.Formats.Properties;
using GameRes.Formats.Strings;
using GameRes.Formats.YuRis;
namespace GameRes.Formats.GUI
{
///
/// Interaction logic for WidgetYPF.xaml
///
public partial class WidgetYPF : Grid
{
public WidgetYPF ()
{
InitializeComponent();
var guess = new Dictionary { { arcStrings.YPFTryGuess, null } };
Scheme.ItemsSource = guess.Concat (YpfOpener.KnownSchemes.OrderBy (x => x.Key));
if (-1 == Scheme.SelectedIndex)
Scheme.SelectedIndex = 0;
}
}
}