private void buttonEditor_Click(object sender, EventArgs e) { DataProfileForm f = new DataProfileForm(); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) PopulateProfileList(); }