mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-26 11:56:41 -05:00
Rewrite settings handling to load on startup
Now uses json to store, manually editable Closes #644
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
using System.Windows.Forms;
|
||||
using NHSE.WinForms.Properties;
|
||||
|
||||
namespace NHSE.WinForms;
|
||||
|
||||
public partial class SettingsEditor : Form
|
||||
{
|
||||
private readonly Settings obj;
|
||||
|
||||
public SettingsEditor()
|
||||
{
|
||||
obj = Settings.Default;
|
||||
InitializeComponent();
|
||||
PG_Settings.SelectedObject = obj;
|
||||
PG_Settings.SelectedObject = Program.Settings;
|
||||
}
|
||||
|
||||
private void SettingsEditor_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
obj.Save();
|
||||
// Settings are saved when Main form closes
|
||||
}
|
||||
|
||||
private void SettingsEditor_KeyDown(object sender, KeyEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user