コード例 #1
0
        private WinOpportunityActionLink(IPortalContext portalContext, int languageCode, WinOpportunityAction action,
                                         bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(
                portalContext, languageCode, action, LinkActionType.WinOpportunity, enabled, url, portalName, DefaultButtonLabel,
                DefaultButtonTooltip)
        {
            Modal = new ViewWinOpportunityModal();

            if (url == null)
            {
                URL = EntityListFunctions.BuildControllerActionUrl("WinOpportunity", "EntityAction",
                                                                   new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
            }
        }
コード例 #2
0
 public WinOpportunityActionLink()
 {
     Modal   = new ViewWinOpportunityModal();
     Enabled = false;
 }