Example #1
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var sForm = new SettingsForm(settings);

            sForm.ShowDialog();
            settings = sForm.EditedSettings;
            WriteSettings();
        }
Example #2
0
 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;
 }