Exemplo n.º 1
0
 private void Init(List <int> hvos, FdoCache cache, string displayNameProperty,
                   string displayWs, bool fIncludeNone)
 {
     foreach (int hvo in hvos)
     {
         this.Add(ObjectLabel.CreateObjectLabel(cache, hvo, displayNameProperty,
                                                displayWs));
     }
     // You get a pretty green dialog box if this is inserted first!?
     if (fIncludeNone)
     {
         this.Add(ObjectLabel.CreateObjectLabel(cache, 0, displayNameProperty,
                                                displayWs));
     }
 }
Exemplo n.º 2
0
		/// <summary>
		/// Add an ObjectLabel struct to the collection.
		/// </summary>
		/// <param name="ol">The ObjectLabel to add.</param>
		public ObjectLabel Add(ObjectLabel ol)
		{
			List.Add(ol);
			return ol;
		}
Exemplo n.º 3
0
 /// <summary>
 /// Add an ObjectLabel struct to the collection.
 /// </summary>
 /// <param name="ol">The ObjectLabel to add.</param>
 public ObjectLabel Add(ObjectLabel ol)
 {
     List.Add(ol);
     return(ol);
 }