2014-10-18 01:01:45 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
using BizHawk.Client.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
|
|
|
|
public partial class DefaultGreenzoneSettings : Form
|
|
|
|
|
{
|
2017-05-24 15:49:35 +00:00
|
|
|
|
private TasStateManagerSettings _settings;
|
2014-10-18 01:01:45 +00:00
|
|
|
|
|
|
|
|
|
public DefaultGreenzoneSettings()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
2017-05-24 15:49:35 +00:00
|
|
|
|
_settings = new TasStateManagerSettings(Global.Config.DefaultTasProjSettings);
|
2014-10-18 01:01:45 +00:00
|
|
|
|
|
2017-05-24 15:49:35 +00:00
|
|
|
|
SettingsPropertyGrid.SelectedObject = _settings;
|
2014-10-18 01:01:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OkBtn_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2017-05-24 15:49:35 +00:00
|
|
|
|
Global.Config.DefaultTasProjSettings = _settings;
|
|
|
|
|
Close();
|
2014-10-18 01:01:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void CancelBtn_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2017-05-24 15:49:35 +00:00
|
|
|
|
Close();
|
2014-10-18 01:01:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DefaultsButton_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2017-05-24 15:49:35 +00:00
|
|
|
|
_settings = new TasStateManagerSettings();
|
|
|
|
|
SettingsPropertyGrid.SelectedObject = _settings;
|
2014-10-18 01:01:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|