private SetOpportunityOnHoldActionLink(IPortalContext portalContext, int languageCode,
                                               SetOpportunityOnHoldAction action, bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(portalContext, languageCode, action, LinkActionType.SetOpportunityOnHold, enabled, url, portalName, DefaultButtonLabel, DefaultButtonTooltip)
        {
            Modal = new ViewSetOpportunityOnHoldModal();

            if (url == null)
            {
                URL = EntityListFunctions.BuildControllerActionUrl("SetOpportunityOnHold", "EntityAction",
                                                                   new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
            }
        }
        public SetOpportunityOnHoldActionLink(IPortalContext portalContext, GridMetadata gridMetadata, int languageCode,
                                              SetOpportunityOnHoldAction action, bool enabled = true, UrlBuilder url = null, string portalName = null)
            : this(portalContext, languageCode, action, enabled, url, portalName)
        {
            if (gridMetadata.SetOpportunityOnHoldDialog == null)
            {
                return;
            }

            Modal.CloseButtonCssClass   = gridMetadata.SetOpportunityOnHoldDialog.CloseButtonCssClass;
            Modal.CloseButtonText       = gridMetadata.SetOpportunityOnHoldDialog.CloseButtonText.GetLocalizedString(languageCode);
            Modal.CssClass              = gridMetadata.SetOpportunityOnHoldDialog.CssClass;
            Modal.DismissButtonSrText   = gridMetadata.SetOpportunityOnHoldDialog.DismissButtonSrText.GetLocalizedString(languageCode);
            Modal.PrimaryButtonCssClass = gridMetadata.SetOpportunityOnHoldDialog.PrimaryButtonCssClass;
            Modal.PrimaryButtonText     = gridMetadata.SetOpportunityOnHoldDialog.PrimaryButtonText.GetLocalizedString(languageCode);
            Modal.Size          = gridMetadata.SetOpportunityOnHoldDialog.Size;
            Modal.Title         = gridMetadata.SetOpportunityOnHoldDialog.Title.GetLocalizedString(languageCode);
            Modal.TitleCssClass = gridMetadata.SetOpportunityOnHoldDialog.TitleCssClass;
        }