private void ChangePricingMenuPanel_VisibleChanged(object sender, EventArgs e) { if (!DesignMode && this.Visible) { var currUser = GlobalDataAccessor.Instance.DesktopSession.LoggedInUserSecurityProfile; //Check if user has access to buttons on this panel SecurityProfileProcedures.ModifyButtonAccessBasedOnSecurityProfile(this.Controls, currUser, ImageButtonControllerGroup.BUTTON_SUFFIX, ImageButtonControllerGroup.BUTTON_TAGSEP, ImageButtonControllerGroup.BUTTON_LEAF, GlobalDataAccessor.Instance.DesktopSession); } }