mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +08:00
33 lines
788 B
C#
33 lines
788 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using GameRes.Formats.Properties;
|
|
|
|
namespace GameRes.Formats.GUI
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for WidgetYPF.xaml
|
|
/// </summary>
|
|
public partial class WidgetYPF : Grid
|
|
{
|
|
public WidgetYPF ()
|
|
{
|
|
InitializeComponent();
|
|
|
|
uint key = Settings.Default.YPFKey;
|
|
if (key < 0x100)
|
|
this.Passkey.Text = key.ToString();
|
|
else
|
|
this.Passkey.Text = null;
|
|
}
|
|
|
|
public uint? GetKey ()
|
|
{
|
|
uint key;
|
|
if (uint.TryParse (this.Passkey.Text, out key) && key < 0x100)
|
|
return key;
|
|
else
|
|
return null;
|
|
}
|
|
}
|
|
}
|