| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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;
- namespace FactorioModManager
- {
- public partial class SettingsForm : Form
- {
- public SettingsForm()
- {
- InitializeComponent();
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- Properties.Settings.Default.autoUpdateMods = checkBox2.Checked;
- Properties.Settings.Default.autoLoadInfo = checkBox1.Checked;
- Properties.Settings.Default.saveToken = checkBox3.Checked;
- Properties.Settings.Default.Save();
- }
- private void SettingsForm_Load(object sender, EventArgs e)
- {
- checkBox2.Checked = Properties.Settings.Default.autoUpdateMods;
- checkBox1.Checked = Properties.Settings.Default.autoLoadInfo;
- checkBox3.Checked = Properties.Settings.Default.saveToken;
- }
- private void SettingsForm_FormClosing(object sender, FormClosingEventArgs e)
- {
- Properties.Settings.Default.autoUpdateMods = checkBox2.Checked;
- Properties.Settings.Default.autoLoadInfo = checkBox1.Checked;
- Properties.Settings.Default.saveToken = checkBox3.Checked;
- Properties.Settings.Default.Save();
- }
- private void CheckBox1_CheckedChanged(object sender, EventArgs e)
- {
- if (!checkBox1.Checked) checkBox2.Checked = false;
- }
- }
- }
|