Beispiel #1
0
 public static ObjectListItem CreateTItem(object reffObject, int i) {
    ObjectListItem ti = new ObjectListItem(reffObject, 0, i);
    ti.Text = i.ToString();
    ti.SetProperties(reffObject);
    return ti;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new TItem objectfor a collection item.
 /// </summary>
 /// <param name="reffObject">The collection item for wich to create an TItem object.</param>
 /// <returns>A TItem object referencing the collection item received as parameter.</returns>
 public static ObjectListItem CreateTItem(object reffObject) {
    ObjectListItem ti = new ObjectListItem(reffObject);
    ti.SetProperties(reffObject);
    return ti;
 }