public FormSettings(SettingsViewData oldSets, string gameName)
 {
     // settings object
     this.settings = new SettingsViewData();
     // tools
     this.folderDlg.ShowNewFolderButton = true;
     this.saveSettings = false;
     InitializeComponent();
     // original settings
     // paths
     this.textBoxNmm.Text              = oldSets.nmmPath;
     this.textBoxVortex.Text           = oldSets.vortexPath;
     this.textBoxNmmGameFolder.Text    = oldSets.vortexGameFolder;
     this.textBoxVortexGameFolder.Text = oldSets.vortexGameFolder;
     // exe
     this.textBoxNmmExe.Text    = oldSets.nmmExe;
     this.textBoxVortexExe.Text = oldSets.vortexExe;
     this.textBoxTESVEdit.Text  = oldSets.tesveditExe;
     // title bar
     this.Text = this.Text + " [" + gameName + "]";
 }
 // update settings after saving data
 private void configureToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (DISABLE_SETTINGS_FORM)
     {
         log.Debug(" -- Settings Form disabled!");
     }
     else
     {
         string           errMsg   = "";
         SettingsViewData oldSvd   = this.managerBusinessLayer.action_getSettings();
         FormSettings     settings = new FormSettings(oldSvd, this.managerBusinessLayer.gameName());
         settings.ShowDialog();
         if (settings.saveSettings)
         {
             int ret = this.managerBusinessLayer.action_updateSettings(settings.getSettings(), out errMsg);
             if (ret != Errors.SUCCESS)
             {
                 MessageBox.Show(errMsg, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
         }
     }
 }