Esempio n. 1
0
 public void AddSeeAlsoInfo(SeeAlsoInfo seealsoInfo)
 {
     lock (_seealsoInfos)
     {
         int capacity = 1;
         if (_seealsoInfos != null)
         {
             capacity = _seealsoInfos.Length + 1;
         }
         SeeAlsoInfo[] tmp = new SeeAlsoInfo[capacity];
         if (_seealsoInfos != null)
         {
             _seealsoInfos.CopyTo(tmp, 0);
         }
         tmp[capacity - 1] = seealsoInfo;
         _seealsoInfos     = tmp;
     }
 }
Esempio n. 2
0
        internal bool TrySetSeeAlso(object item)
        {
            bool    result  = false;
            seealso seealso = item as seealso;

            if (seealso != null)
            {
                result = true;
                StringBuilder txt = new StringBuilder();
                seealso.Text.Each(s =>
                {
                    txt.Append(s);
                });

                SeeAlsoInfo info = new SeeAlsoInfo();
                info.Text = txt.ToString();
                info.Cref = seealso.cref;
                AddSeeAlsoInfo(info);
            }

            return(result);
        }