public static string GetRecpientDisplayName(StepRecipient recp) { if (recp.Agent == null) { return(YZStringHelper.GetUserFriendlyName(recp.Owner.Account, recp.Owner.DisplayName)); } else { return(String.Format(Resources.YZStrings.Aspx_RecpDspFmt, YZStringHelper.GetUserFriendlyName(recp.Agent.Account, recp.Agent.DisplayName), YZStringHelper.GetUserShortName(recp.Owner.Account, recp.Owner.DisplayName))); } }
public static string GetRecpientDisplayName(StepRecipient recp) { if (recp.Agent == null) return YZStringHelper.GetUserFriendlyName(recp.Owner.Account, recp.Owner.DisplayName); else return String.Format(Resources.YZStrings.Aspx_RecpDspFmt, YZStringHelper.GetUserFriendlyName(recp.Agent.Account, recp.Agent.DisplayName), YZStringHelper.GetUserShortName(recp.Owner.Account, recp.Owner.DisplayName)); }