Mesen-X/GUI.NET/Forms/Config/Controllers/frmZapperConfig.cs

34 lines
735 B
C#
Raw Normal View History

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;
namespace Mesen.GUI.Forms.Config
{
public partial class frmZapperConfig : BaseConfigForm
{
public frmZapperConfig(ZapperInfo zapperInfo)
{
InitializeComponent();
Entity = zapperInfo;
AddBinding("DetectionRadius", trkRadius);
}
protected override void OnFormClosed(FormClosedEventArgs e)
{
//Do not save anything, the parent input form will handle the changes
if(this.DialogResult == DialogResult.OK) {
UpdateObject();
}
base.OnFormClosed(e);
}
}
}