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)); } }
/// <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; }
/// <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); }