m4n71k0r

Untitled

Oct 24th, 2011
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1.         /// <summary>
  2.         /// DisplayName
  3.         /// </summary>
  4.         public override string DisplayName
  5.         {
  6.             get
  7.             {
  8.                 ContragentContact Item = this.collection[index];
  9.                 return "Контактное лицо №" + (index + 1).ToString();
  10.             }
  11.         }
  12.  
  13.         /// <summary>
  14.         /// Description
  15.         /// </summary>
  16.         public override string Description
  17.         {
  18.             get
  19.             {
  20.                 ContragentContact Item = this.collection[index];
  21.                 StringBuilder sb = new StringBuilder();
  22.                 sb.Append("Контактное лицо");
  23.                 sb.Append(", ");
  24.                 sb.Append(index + 1);
  25.  
  26.                 return sb.ToString();
  27.             }
  28.         }
Advertisement
Add Comment
Please, Sign In to add comment