2015-12-18 17:39:26 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows;
|
2015-08-20 01:40:32 +08:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using GameRes.Formats.Properties;
|
2015-12-18 17:39:26 +08:00
|
|
|
|
using GameRes.Formats.Strings;
|
|
|
|
|
using GameRes.Formats.YuRis;
|
2015-08-20 01:40:32 +08:00
|
|
|
|
|
|
|
|
|
namespace GameRes.Formats.GUI
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for WidgetYPF.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class WidgetYPF : Grid
|
|
|
|
|
{
|
|
|
|
|
public WidgetYPF ()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2015-12-18 17:39:26 +08: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-20 01:40:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|