/// <summary> /// Searches the current page of change entries for the type of object and operation changed. /// </summary> /// <param name="operation">The change operation being sought.</param> /// <param name="objectType">The change object type being sought.</param> /// <returns>The first <see cref="ChangeEntry"/> matching the search conditions.</returns> public ChangeEntry FindChange(ChangeOperation operation, ChangeObjectType objectType) { return FindChange(operation, objectType, null); }
/// <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; }
/// <summary> /// Searches the current page of change entries for the type of object and operation changed. /// </summary> /// <param name="operation">The change operation being sought.</param> /// <param name="objectType">The change object type being sought.</param> /// <returns> /// The list of <see cref="ChangeEntry" />s matching the search conditions. /// </returns> public List<ChangeEntry> FindChanges(ChangeOperation operation, ChangeObjectType objectType) { return FindChanges(new ChangeOperation[] { operation }, new ChangeObjectType[] { objectType }); }
/// <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>()); }
/// <summary> /// Initializes a new instance of the <see cref="Change"/> class. /// </summary> /// <param name="objectType">The changed object type.</param> /// <param name="type">The type of the change.</param> /// <param name="objectName">The name of the changed object.</param> protected Change(ChangeObjectType objectType, ChangeType type, string objectName) { ObjectType = objectType; Type = type; ObjectName = objectName; }
/// <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); }
/// <summary> /// Searches the current page of change entries for the type of object and operation changed. /// </summary> /// <param name="operation">The change operation being sought.</param> /// <param name="objectType">The change object type being sought.</param> /// <returns>The first <see cref="ChangeEntry"/> matching the search conditions.</returns> public ChangeEntry FindChange(ChangeOperation operation, ChangeObjectType objectType) { return(FindChange(operation, objectType, null)); }
/// <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>())); }
/// <summary> /// Searches the current page of change entries for the type of object and operation changed. /// </summary> /// <param name="operation">The change operation being sought.</param> /// <param name="objectType">The change object type being sought.</param> /// <returns> /// The list of <see cref="ChangeEntry" />s matching the search conditions. /// </returns> public List <ChangeEntry> FindChanges(ChangeOperation operation, ChangeObjectType objectType) { return(FindChanges(new ChangeOperation[] { operation }, new ChangeObjectType[] { objectType })); }