private void aboutProfilesSaveAsButton_Click(object sender, EventArgs e) { var newForm = new SaveProfileAsNameForm(); if (newForm.ShowDialog() == DialogResult.OK) { ApplySettings(); SettingsManager.Instance.SaveToFile(GlobalSettingsManager.GetFullPathToProfile(newForm.NameTextBox.Text)); GlobalSettingsManager.Instance.LastUsedProfile = newForm.NameTextBox.Text; GlobalSettingsManager.Instance.Save(); PopulateProfiles(); } }