private void InitConfig()
 {
     var config = new Config();
     config.Closing += ExtractConfigFromForm;
     config.Show();
     config.Close();
 }
 private void btnConfig_Click(object sender, EventArgs e)
 {
     var config = new Config();
     config.Closing += ExtractConfigFromForm;
     config.Show();
 }