41 lines
912 B
C#
41 lines
912 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using Mesen.GUI.Config;
|
|
using Mesen.GUI.Forms;
|
|
|
|
namespace Mesen.GUI.Debugger
|
|
{
|
|
public partial class frmSetScriptTimeout : BaseConfigForm
|
|
{
|
|
public frmSetScriptTimeout()
|
|
{
|
|
InitializeComponent();
|
|
|
|
nudTimeout.Value = ConfigManager.Config.DebugInfo.ScriptTimeout;
|
|
}
|
|
|
|
protected override void OnShown(EventArgs e)
|
|
{
|
|
base.OnShown(e);
|
|
nudTimeout.Focus();
|
|
}
|
|
|
|
protected override void OnFormClosed(FormClosedEventArgs e)
|
|
{
|
|
base.OnFormClosed(e);
|
|
if(this.DialogResult == DialogResult.OK) {
|
|
UInt32 count = (UInt32)nudTimeout.Value;
|
|
ConfigManager.Config.DebugInfo.ScriptTimeout = count;
|
|
ConfigManager.ApplyChanges();
|
|
DebugInfo.ApplyConfig();
|
|
}
|
|
}
|
|
}
|
|
}
|