private void saveButton_Click(object sender, EventArgs e) { if (langNameBox.Text != "" && !copyFont) { App_Code.Language L = new App_Code.Language(); L.Name = langNameBox.Text; L.Save(); this.Close(); } else if (langNameBox.Text != "" && copyFont) { NewName = langNameBox.Text; this.Close(); } else { MessageBox.Show("Please enter a name."); } }