/// <summary> /// Returns true if CreateActivityProviderEvent instances are equal /// </summary> /// <param name="other">Instance of CreateActivityProviderEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(CreateActivityProviderEvent other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AgreementId == other.AgreementId || AgreementId != null && AgreementId.Equals(other.AgreementId) ) && ( EventType == other.EventType || EventType != null && EventType.Equals(other.EventType) ) && ( ActivityId == other.ActivityId || ActivityId != null && ActivityId.Equals(other.ActivityId) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (AgreementId != null) { hashCode = hashCode * 59 + AgreementId.GetHashCode(); } if (RequestorId != null) { hashCode = hashCode * 59 + RequestorId.GetHashCode(); } if (Demand != null) { hashCode = hashCode * 59 + Demand.GetHashCode(); } if (ProviderId != null) { hashCode = hashCode * 59 + ProviderId.GetHashCode(); } if (Offer != null) { hashCode = hashCode * 59 + Offer.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if Agreement instances are equal /// </summary> /// <param name="other">Instance of Agreement to be compared</param> /// <returns>Boolean</returns> public bool Equals(Agreement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AgreementId == other.AgreementId || AgreementId != null && AgreementId.Equals(other.AgreementId) ) && ( Demand == other.Demand || Demand != null && Demand.Equals(other.Demand) ) && ( Offer == other.Offer || Offer != null && Offer.Equals(other.Offer) ) && ( ValidTo == other.ValidTo || ValidTo != null && ValidTo.Equals(other.ValidTo) ) && ( ApprovedDate == other.ApprovedDate || ApprovedDate != null && ApprovedDate.Equals(other.ApprovedDate) ) && ( State == other.State || State != null && State.Equals(other.State) ) && ( ProposedSignature == other.ProposedSignature || ProposedSignature != null && ProposedSignature.Equals(other.ProposedSignature) ) && ( ApprovedSignature == other.ApprovedSignature || ApprovedSignature != null && ApprovedSignature.Equals(other.ApprovedSignature) ) && ( CommittedSignature == other.CommittedSignature || CommittedSignature != null && CommittedSignature.Equals(other.CommittedSignature) )); }
protected override void WriteDataOnParent(MainForm frm, Control parent, ref Point location) { EventLabel(frm, parent, ref location, "Agreement ID:", AgreementId.ToString()); EventLabel(frm, parent, ref location, "God", God); EventLabel(frm, parent, ref location, "HF:", Hf); EventLabel(frm, parent, ref location, "Site:", Site); EventLabel(frm, parent, ref location, "Artifact:", Artifact); EventLabel(frm, parent, ref location, "Concluder HF:", Hf_Concluder); EventLabel(frm, parent, ref location, "Agreement Subject ID:", AgreementSubjectId.ToString()); EventLabel(frm, parent, ref location, "Reason:", Reason); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (AgreementId != null) { hashCode = hashCode * 59 + AgreementId.GetHashCode(); } if (Demand != null) { hashCode = hashCode * 59 + Demand.GetHashCode(); } if (Offer != null) { hashCode = hashCode * 59 + Offer.GetHashCode(); } if (ValidTo != null) { hashCode = hashCode * 59 + ValidTo.GetHashCode(); } if (ApprovedDate != null) { hashCode = hashCode * 59 + ApprovedDate.GetHashCode(); } if (State != null) { hashCode = hashCode * 59 + State.GetHashCode(); } if (ProposedSignature != null) { hashCode = hashCode * 59 + ProposedSignature.GetHashCode(); } if (ApprovedSignature != null) { hashCode = hashCode * 59 + ApprovedSignature.GetHashCode(); } if (CommittedSignature != null) { hashCode = hashCode * 59 + CommittedSignature.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (AgreementId != null) { hashCode = hashCode * 59 + AgreementId.GetHashCode(); } if (EventType != null) { hashCode = hashCode * 59 + EventType.GetHashCode(); } if (ActivityId != null) { hashCode = hashCode * 59 + ActivityId.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if NewAgreementEvent instances are equal /// </summary> /// <param name="other">Instance of NewAgreementEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(NewAgreementEvent other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AgreementId == other.AgreementId || AgreementId != null && AgreementId.Equals(other.AgreementId) ) && ( RequestorId == other.RequestorId || RequestorId != null && RequestorId.Equals(other.RequestorId) ) && ( Demand == other.Demand || Demand != null && Demand.Equals(other.Demand) ) && ( ProviderId == other.ProviderId || ProviderId != null && ProviderId.Equals(other.ProviderId) ) && ( Offer == other.Offer || Offer != null && Offer.Equals(other.Offer) )); }
public Agreement Get(AgreementId agreementId) { return(_agreements.SingleOrDefault()); }