2015-12-18 13:39:26 +04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows;
|
2015-08-19 21:40:32 +04:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using GameRes.Formats.Properties;
|
2015-12-18 13:39:26 +04:00
|
|
|
|
using GameRes.Formats.Strings;
|
|
|
|
|
using GameRes.Formats.YuRis;
|
2015-08-19 21:40:32 +04:00
|
|
|
|
|
|
|
|
|
namespace GameRes.Formats.GUI
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for WidgetYPF.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class WidgetYPF : Grid
|
|
|
|
|
{
|
|
|
|
|
public WidgetYPF ()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2015-12-18 13:39:26 +04:00
|
|
|
|
var guess = new Dictionary<string, YpfScheme> { { arcStrings.YPFTryGuess, null } };
|
|
|
|
|
Scheme.ItemsSource = guess.Concat (YpfOpener.KnownSchemes.OrderBy (x => x.Key));
|
|
|
|
|
if (-1 == Scheme.SelectedIndex)
|
|
|
|
|
Scheme.SelectedIndex = 0;
|
2015-08-19 21:40:32 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|