private void btnAddProfile_Click(object sender, EventArgs e) { frmNewProfile objNewProfile = new frmNewProfile(); objNewProfile.ShowDialog(); if (objNewProfile.Result == DialogResult.OK) { // Clear all required caches and fire update event UserProfiles.ClearProfileCache(); PopulateList(); ProfileListChanged(this); } }
private void btnAddProfile_Click(object sender, EventArgs e) { frmNewProfile objNewProfile = new frmNewProfile(); objNewProfile.ShowDialog(); if (objNewProfile.Result == DialogResult.OK) { // Clear all required caches and fire update event UserProfiles.ClearProfileCache(); PopulateList(); ProfileListChanged(this); } }