Ejemplo n.º 1
0
 /// <summary>
 /// Searches the current page of change entries for the type of object and operation changed and the modifier involved.
 /// </summary>
 /// <param name="operation">The change operation being sought.</param>
 /// <param name="objectType">The change object type being sought.</param>
 /// <param name="modifier">The change object modifier involved being sought.</param>
 /// <returns>
 /// The first <see cref="ChangeEntry" /> matching the search conditions.
 /// </returns>
 public ChangeEntry FindChange(ChangeOperation operation, ChangeObjectType objectType, ChangeObjectModifier? modifier)
 {
     List<ChangeEntry> changes = FindChanges(operation, objectType, modifier);
     return changes.Count > 0 ? changes.First() : null;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Searches the current page of change entries for the type of object and operation changed and the modifier involved.
 /// </summary>
 /// <param name="operation">The change operation being sought.</param>
 /// <param name="objectType">The change object type being sought.</param>
 /// <param name="modifier">The change object modifier involved being sought.</param>
 /// <returns>
 /// The list of <see cref="ChangeEntry" />s matching the search conditions.
 /// </returns>
 public List<ChangeEntry> FindChanges(ChangeOperation operation, ChangeObjectType objectType, ChangeObjectModifier? modifier)
 {
     return FindChanges(new ChangeOperation[] { operation }, new ChangeObjectType[] { objectType }, modifier != null ? new ChangeObjectModifier[] { modifier.Value } : Enum.GetValues(typeof(ChangeObjectModifier)).Cast<ChangeObjectModifier>());
 }