public void SetDAOs(SourceType source) { if (source.Equals(SourceType.FILE)) { productsDAO = fileProductsDAO; shoppingListsDAO = fileShoppingListsDAO; } else { productsDAO = sqlProductsDAO; shoppingListsDAO = sqlShoppingListsDAO; } }
public override bool Equals(object obj) { if (obj is CastParams) { CastParams parms = (CastParams)obj; return(SourceType.Equals(parms.SourceType) && DestType.Equals(parms.DestType) && Reinterpret == parms.Reinterpret); } else { return(false); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Payment other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((TipMoney == null && other.TipMoney == null) || (TipMoney?.Equals(other.TipMoney) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((AppFeeMoney == null && other.AppFeeMoney == null) || (AppFeeMoney?.Equals(other.AppFeeMoney) == true)) && ((ProcessingFee == null && other.ProcessingFee == null) || (ProcessingFee?.Equals(other.ProcessingFee) == true)) && ((RefundedMoney == null && other.RefundedMoney == null) || (RefundedMoney?.Equals(other.RefundedMoney) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((DelayDuration == null && other.DelayDuration == null) || (DelayDuration?.Equals(other.DelayDuration) == true)) && ((DelayAction == null && other.DelayAction == null) || (DelayAction?.Equals(other.DelayAction) == true)) && ((DelayedUntil == null && other.DelayedUntil == null) || (DelayedUntil?.Equals(other.DelayedUntil) == true)) && ((SourceType == null && other.SourceType == null) || (SourceType?.Equals(other.SourceType) == true)) && ((CardDetails == null && other.CardDetails == null) || (CardDetails?.Equals(other.CardDetails) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) && ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) && ((RefundIds == null && other.RefundIds == null) || (RefundIds?.Equals(other.RefundIds) == true)) && ((RiskEvaluation == null && other.RiskEvaluation == null) || (RiskEvaluation?.Equals(other.RiskEvaluation) == true)) && ((BuyerEmailAddress == null && other.BuyerEmailAddress == null) || (BuyerEmailAddress?.Equals(other.BuyerEmailAddress) == true)) && ((BillingAddress == null && other.BillingAddress == null) || (BillingAddress?.Equals(other.BillingAddress) == true)) && ((ShippingAddress == null && other.ShippingAddress == null) || (ShippingAddress?.Equals(other.ShippingAddress) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((StatementDescriptionIdentifier == null && other.StatementDescriptionIdentifier == null) || (StatementDescriptionIdentifier?.Equals(other.StatementDescriptionIdentifier) == true)) && ((ReceiptNumber == null && other.ReceiptNumber == null) || (ReceiptNumber?.Equals(other.ReceiptNumber) == true)) && ((ReceiptUrl == null && other.ReceiptUrl == null) || (ReceiptUrl?.Equals(other.ReceiptUrl) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is ListPaymentRefundsRequest other && ((BeginTime == null && other.BeginTime == null) || (BeginTime?.Equals(other.BeginTime) == true)) && ((EndTime == null && other.EndTime == null) || (EndTime?.Equals(other.EndTime) == true)) && ((SortOrder == null && other.SortOrder == null) || (SortOrder?.Equals(other.SortOrder) == true)) && ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((SourceType == null && other.SourceType == null) || (SourceType?.Equals(other.SourceType) == true)) && ((Limit == null && other.Limit == null) || (Limit?.Equals(other.Limit) == true))); }
public override string ToString() { string strResult = string.Empty; string strTitle = (String.IsNullOrEmpty(Title) ? Path.GetFileName(SourceFilePath) : Title); if (SourceType.Equals("DVD")) { strTitle += " - PGC " + PGCNumber.ToString("D2"); } if (Chapters.Count != 1) { strResult = string.Format("{0} - {1} - [{2} Chapters]", strTitle, string.Format("{0:00}:{1:00}:{2:00}.{3:000}", System.Math.Floor(Duration.TotalHours), Duration.Minutes, Duration.Seconds, Duration.Milliseconds), Chapters.Count); } else { strResult = string.Format("{0} - {1} - [{2} Chapter]", strTitle, string.Format("{0:00}:{1:00}:{2:00}.{3:000}", System.Math.Floor(Duration.TotalHours), Duration.Minutes, Duration.Seconds, Duration.Milliseconds), Chapters.Count); } if (AngleNumber > 0) { strResult += " - Angle " + AngleNumber; } return(strResult); }
/// <inheritdoc /> public bool Equals([AllowNull] Layer other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Visible == other.Visible || Visible != null && Visible.Equals(other.Visible) ) && ( SourceType == other.SourceType || SourceType != null && SourceType.Equals(other.SourceType) ) && ( Source == other.Source || Source != null && Source.Equals(other.Source) ) && ( SourceLayer == other.SourceLayer || SourceLayer != null && SourceLayer.Equals(other.SourceLayer) ) && ( SourceAttribution == other.SourceAttribution || SourceAttribution != null && SourceAttribution.Equals(other.SourceAttribution) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Coordinates == other.Coordinates || Coordinates != null && Coordinates.Equals(other.Coordinates) ) && ( Below == other.Below || Below != null && Below.Equals(other.Below) ) && ( Color == other.Color || Color != null && Color.Equals(other.Color) ) && ( Opacity == other.Opacity || Opacity != null && Opacity.Equals(other.Opacity) ) && ( MinZoom == other.MinZoom || MinZoom != null && MinZoom.Equals(other.MinZoom) ) && ( MaxZoom == other.MaxZoom || MaxZoom != null && MaxZoom.Equals(other.MaxZoom) ) && ( Circle == other.Circle || Circle != null && Circle.Equals(other.Circle) ) && ( Line == other.Line || Line != null && Line.Equals(other.Line) ) && ( Fill == other.Fill || Fill != null && Fill.Equals(other.Fill) ) && ( Symbol == other.Symbol || Symbol != null && Symbol.Equals(other.Symbol) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( TemplateItemName == other.TemplateItemName || TemplateItemName != null && TemplateItemName.Equals(other.TemplateItemName) )); }
public bool Equals(ExpressionRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(String.Equals(_membersForComparison, other._membersForComparison) && SourceType.Equals(other.SourceType) && DestinationType.Equals(other.DestinationType)); }