private void BtnModEditorClick(object sender, EventArgs e) { var editor = new ModConfigEditor(tbModConfig.Text); if (editor.ShowDialog() == DialogResult.OK) { tbModConfig.Text = editor.ModConfigFile; } }