public SettingsDialog(Settings settings)
 {
     this.Settings = settings;
     InitializeComponent();
 }
 private void GetSettingsFromUser()
 {
     SettingsDialog f = new SettingsDialog(settings);
     f.ShowDialog();
     settings = f.Settings;
 }