mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
reorganized project directory structure.
This commit is contained in:
33
ArcFormats/Majiro/WidgetRCT.xaml.cs
Normal file
33
ArcFormats/Majiro/WidgetRCT.xaml.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Controls;
|
||||
using GameRes.Formats.Properties;
|
||||
|
||||
namespace GameRes.Formats.GUI
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for WidgetRCT.xaml
|
||||
/// </summary>
|
||||
public partial class WidgetRCT : Grid
|
||||
{
|
||||
public WidgetRCT ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
this.Password.Text = Settings.Default.RCTPassword;
|
||||
if (null != this.Title.SelectedItem)
|
||||
{
|
||||
var selected = (KeyValuePair<string, string>)this.Title.SelectedItem;
|
||||
if (Settings.Default.RCTPassword != selected.Value)
|
||||
this.Title.SelectedIndex = -1;
|
||||
}
|
||||
}
|
||||
|
||||
private void Title_SelectionChanged (object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (null != this.Title.SelectedItem && null != this.Password)
|
||||
{
|
||||
var selected = (KeyValuePair<string, string>)this.Title.SelectedItem;
|
||||
this.Password.Text = selected.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user