private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { var sForm = new SettingsForm(settings); sForm.ShowDialog(); settings = sForm.EditedSettings; WriteSettings(); }
private void Main_Shown(object sender, EventArgs e) { if (needInitialSetup) { var settingsForm = new SettingsForm(settings); settingsForm.ShowDialog(); settings = settingsForm.EditedSettings; WriteSettings(); } }
public SettingsForm(SettingData s) { InitializeComponent(); EditedSettings = s; }