Esempio n. 1
0
 public int IndexOf(DirectoryListEntryColumnName columnName, object value)
 {
     foreach (DirectoryListEntry entity in this)
     {
         if (entity[columnName.ToString()].Equals(value))
         {
             return(IndexOf(entity));
         }
     }
     return(-1);
 }
Esempio n. 2
0
 public bool Contains(DirectoryListEntryColumnName columnName, object value)
 {
     foreach (DirectoryListEntry entity in this)
     {
         if (entity[columnName.ToString()].Equals(value))
         {
             return(true);
         }
     }
     return(false);
 }
Esempio n. 3
0
 public void Sort(DirectoryListEntryColumnName sortByColumn, ListSortDirection sortDirection)
 {
     Sort(sortByColumn.ToString(), sortDirection);
 }
Esempio n. 4
0
 public static DirectoryListEntryCollection GetSorted(DirectoryListEntryCollection collection, DirectoryListEntryColumnName sortByColumn, ListSortDirection sortDirection)
 {
     return(GetSorted(collection, sortByColumn.ToString(), sortDirection));
 }