Update to .NET 10 (#683)

This commit is contained in:
Kurt
2026-01-13 16:02:58 -06:00
committed by GitHub
parent 63bd5f643c
commit fa3f0e3cc8
316 changed files with 31897 additions and 32159 deletions

View File

@@ -1,28 +1,27 @@
using System.Windows.Forms;
using NHSE.WinForms.Properties;
namespace NHSE.WinForms
namespace NHSE.WinForms;
public partial class SettingsEditor : Form
{
public partial class SettingsEditor : Form
private readonly Settings obj;
public SettingsEditor()
{
private readonly Settings obj;
public SettingsEditor()
{
obj = Settings.Default;
InitializeComponent();
PG_Settings.SelectedObject = obj;
}
private void SettingsEditor_FormClosing(object sender, FormClosingEventArgs e)
{
obj.Save();
}
private void SettingsEditor_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.W && ModifierKeys == Keys.Control)
Close();
}
obj = Settings.Default;
InitializeComponent();
PG_Settings.SelectedObject = obj;
}
}
private void SettingsEditor_FormClosing(object sender, FormClosingEventArgs e)
{
obj.Save();
}
private void SettingsEditor_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.W && ModifierKeys == Keys.Control)
Close();
}
}