public bool Equals(TransferBundleSettings other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (!(SelectionColor.Equals(other.SelectionColor) &&
                  PendedColor.Equals(other.PendedColor) &&
                  ProcessedColor.Equals(other.ProcessedColor) &&
                  InterruptedColor.Equals(other.InterruptedColor) &&
                  CompletedColor.Equals(other.CompletedColor)))
            {
                return(false);
            }

            if (!ColumnOrders.SequenceEqual(other.ColumnOrders))
            {
                return(false);
            }

            if (!ColumnWidths.SequenceEqual(other.ColumnWidths))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
        public bool Equals(PreparedTransferSettings other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (!(FailedColor.Equals(other.FailedColor) &&
                  SelectionColor.Equals(other.SelectionColor) &&
                  PendedColor.Equals(other.PendedColor) &&
                  ProcessedColor.Equals(other.ProcessedColor) &&
                  InterruptedColor.Equals(other.InterruptedColor) &&
                  CompletedColor.Equals(other.CompletedColor) &&
                  PrimaryIdVisibility == other.PrimaryIdVisibility &&
                  SecondaryIdVisibility == other.SecondaryIdVisibility &&
                  PaymentIdVisibility == other.PaymentIdVisibility &&
                  SourcePurseVisibility == other.SourcePurseVisibility &&
                  TargetPurseVisibility == other.TargetPurseVisibility &&
                  DescriptionVisibility == other.DescriptionVisibility &&
                  ForceVisibility == other.ForceVisibility &&
                  CreationTimeVisibility == other.CreationTimeVisibility &&
                  TransferCreationTimeVisibility == other.TransferCreationTimeVisibility))
            {
                return(false);
            }

            if (!ColumnOrders.SequenceEqual(other.ColumnOrders))
            {
                return(false);
            }

            if (!ColumnWidths.SequenceEqual(other.ColumnWidths))
            {
                return(false);
            }

            return(true);
        }