Mesen-X/GUI.NET/Forms/BaseConfigForm.cs
Souryo 48409ae82b -Rewrote entire GUI in .NET
-Several other fixes (bugfixes, refactoring, etc.)
-Added a few more features to debugger
2015-07-01 23:17:14 -04:00

27 lines
537 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesen.GUI.Forms
{
public class BaseConfigForm : Form
{
protected override void OnFormClosed(FormClosedEventArgs e)
{
if(this.DialogResult == System.Windows.Forms.DialogResult.OK) {
UpdateConfig();
ConfigManager.ApplyChanges();
} else {
ConfigManager.RejectChanges();
}
base.OnFormClosed(e);
}
protected virtual void UpdateConfig()
{
}
}
}