Add automatic backup, add program settings editor

This commit is contained in:
Kurt
2020-04-21 12:11:31 -07:00
parent 3a68919325
commit eaa805a374
11 changed files with 365 additions and 24 deletions

View File

@@ -0,0 +1,28 @@
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;
}
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();
}
}
}