public void OnSortedStateChanged() { //TODO: Add animation to the change between asc/desc? IsSorted = SortValue.Equals(SortedState?.SortValue); HelperText = IsSorted ? SortedState?.SortDirection == SortDirectionEnum.Descending ? " \uEDDC" : " \uEDDB" : ""; }
public void SortButton_Clicked(object sender, EventArgs e) { if (SortValue != null) { if (SortValue.Equals(SortedState?.SortValue)) { var newDirection = SortedState.SortDirection == SortDirectionEnum.Ascending ? SortDirectionEnum.Descending : SortDirectionEnum.Ascending; SortedState = new SortState(SortedState.SortValue, newDirection); } else { SortedState = new SortState(SortValue, SortDirectionEnum.Ascending); } } }
public bool Equals(DestinyVendorItemDefinition input) { if (input == null) { return(false); } return (( VendorItemIndex == input.VendorItemIndex || (VendorItemIndex.Equals(input.VendorItemIndex)) ) && ( ItemHash == input.ItemHash || (ItemHash.Equals(input.ItemHash)) ) && ( Quantity == input.Quantity || (Quantity.Equals(input.Quantity)) ) && ( FailureIndexes == input.FailureIndexes || (FailureIndexes != null && FailureIndexes.SequenceEqual(input.FailureIndexes)) ) && ( Currencies == input.Currencies || (Currencies != null && Currencies.SequenceEqual(input.Currencies)) ) && ( RefundPolicy == input.RefundPolicy || (RefundPolicy != null && RefundPolicy.Equals(input.RefundPolicy)) ) && ( RefundTimeLimit == input.RefundTimeLimit || (RefundTimeLimit.Equals(input.RefundTimeLimit)) ) && ( CreationLevels == input.CreationLevels || (CreationLevels != null && CreationLevels.SequenceEqual(input.CreationLevels)) ) && ( DisplayCategoryIndex == input.DisplayCategoryIndex || (DisplayCategoryIndex.Equals(input.DisplayCategoryIndex)) ) && ( CategoryIndex == input.CategoryIndex || (CategoryIndex.Equals(input.CategoryIndex)) ) && ( OriginalCategoryIndex == input.OriginalCategoryIndex || (OriginalCategoryIndex.Equals(input.OriginalCategoryIndex)) ) && ( MinimumLevel == input.MinimumLevel || (MinimumLevel.Equals(input.MinimumLevel)) ) && ( MaximumLevel == input.MaximumLevel || (MaximumLevel.Equals(input.MaximumLevel)) ) && ( Action == input.Action || (Action != null && Action.Equals(input.Action)) ) && ( DisplayCategory == input.DisplayCategory || (DisplayCategory != null && DisplayCategory.Equals(input.DisplayCategory)) ) && ( InventoryBucketHash == input.InventoryBucketHash || (InventoryBucketHash.Equals(input.InventoryBucketHash)) ) && ( VisibilityScope == input.VisibilityScope || (VisibilityScope != null && VisibilityScope.Equals(input.VisibilityScope)) ) && ( PurchasableScope == input.PurchasableScope || (PurchasableScope != null && PurchasableScope.Equals(input.PurchasableScope)) ) && ( Exclusivity == input.Exclusivity || (Exclusivity != null && Exclusivity.Equals(input.Exclusivity)) ) && ( IsOffer == input.IsOffer || (IsOffer != null && IsOffer.Equals(input.IsOffer)) ) && ( IsCrm == input.IsCrm || (IsCrm != null && IsCrm.Equals(input.IsCrm)) ) && ( SortValue == input.SortValue || (SortValue.Equals(input.SortValue)) ) && ( ExpirationTooltip == input.ExpirationTooltip || (ExpirationTooltip != null && ExpirationTooltip.Equals(input.ExpirationTooltip)) ) && ( RedirectToSaleIndexes == input.RedirectToSaleIndexes || (RedirectToSaleIndexes != null && RedirectToSaleIndexes.SequenceEqual(input.RedirectToSaleIndexes)) ) && ( SocketOverrides == input.SocketOverrides || (SocketOverrides != null && SocketOverrides.SequenceEqual(input.SocketOverrides)) ) && ( Unpurchasable == input.Unpurchasable || (Unpurchasable != null && Unpurchasable.Equals(input.Unpurchasable)) )); }
public bool Equals(DestinyVendorCategoryEntryDefinition input) { if (input == null) return false; return ( CategoryIndex == input.CategoryIndex || (CategoryIndex.Equals(input.CategoryIndex)) ) && ( SortValue == input.SortValue || (SortValue.Equals(input.SortValue)) ) && ( CategoryHash == input.CategoryHash || (CategoryHash.Equals(input.CategoryHash)) ) && ( QuantityAvailable == input.QuantityAvailable || (QuantityAvailable.Equals(input.QuantityAvailable)) ) && ( ShowUnavailableItems == input.ShowUnavailableItems || (ShowUnavailableItems != null && ShowUnavailableItems.Equals(input.ShowUnavailableItems)) ) && ( HideIfNoCurrency == input.HideIfNoCurrency || (HideIfNoCurrency != null && HideIfNoCurrency.Equals(input.HideIfNoCurrency)) ) && ( HideFromRegularPurchase == input.HideFromRegularPurchase || (HideFromRegularPurchase != null && HideFromRegularPurchase.Equals(input.HideFromRegularPurchase)) ) && ( BuyStringOverride == input.BuyStringOverride || (BuyStringOverride != null && BuyStringOverride.Equals(input.BuyStringOverride)) ) && ( DisabledDescription == input.DisabledDescription || (DisabledDescription != null && DisabledDescription.Equals(input.DisabledDescription)) ) && ( DisplayTitle == input.DisplayTitle || (DisplayTitle != null && DisplayTitle.Equals(input.DisplayTitle)) ) && ( Overlay == input.Overlay || (Overlay != null && Overlay.Equals(input.Overlay)) ) && ( VendorItemIndexes == input.VendorItemIndexes || (VendorItemIndexes != null && VendorItemIndexes.SequenceEqual(input.VendorItemIndexes)) ) && ( IsPreview == input.IsPreview || (IsPreview != null && IsPreview.Equals(input.IsPreview)) ) && ( IsDisplayOnly == input.IsDisplayOnly || (IsDisplayOnly != null && IsDisplayOnly.Equals(input.IsDisplayOnly)) ) && ( ResetIntervalMinutesOverride == input.ResetIntervalMinutesOverride || (ResetIntervalMinutesOverride.Equals(input.ResetIntervalMinutesOverride)) ) && ( ResetOffsetMinutesOverride == input.ResetOffsetMinutesOverride || (ResetOffsetMinutesOverride.Equals(input.ResetOffsetMinutesOverride)) ) ; }