protected void InitialRelativeTags(ref CY.CSTS.Core.Business.view_INSTRUMENT instrument, ref IEnumerable<string> relativeTags, ref int count) { try { if (instrument != null) { relativeTags = instrument.GetRelativeTags(); if (relativeTags != null) { count = relativeTags.Count(); } } } catch (Exception ex) { throw ex; } }
private string ConstructorTag(CY.CSTS.Core.Business.view_INSTRUMENT inst) { StringBuilder html = new StringBuilder(); try { if (inst == null) { throw new Exception("inst for fetch tag is null"); } IEnumerable<string> tags = inst.GetRelativeTags(); if (tags != null) { foreach (string tag in tags) { html.Append(string.Format("<a href='javascript:;' class='tag'>{0}</a>|", tag)); } if (tags.Count() > 0) { html.Remove(html.Length - 1, 1); } } } catch (Exception ex) { throw ex; } return html.ToString(); }