public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Description?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (IsCustom.GetHashCode());
            return(hashCode);
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            var result = new StringBuilder();

            result.Append(SonarPagingQuery.ToString());
            SonarHelpers.AppendUrl(result, "f", Fields);
            if (IsCustom.HasValue)
            {
                SonarHelpers.AppendUrl(result, "isCustom", IsCustom.ToString().ToLowerInvariant());
            }

            return(result.Length > 0 ? "?" + result : string.Empty);
        }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LeftPercent.GetHashCode();
         hashCode = (hashCode * 397) ^ TopPercent.GetHashCode();
         hashCode = (hashCode * 397) ^ WidthPercent.GetHashCode();
         hashCode = (hashCode * 397) ^ HeightPercent.GetHashCode();
         hashCode = (hashCode * 397) ^ IsCustom.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
        protected override async Task OnAppearingAnimationEndAsync()
        {
            if (!IsAnimationEnabled)
            {
                return;
            }

            var translateLength = 400u;

            await Task.WhenAll(
                FoodName.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                FoodName.FadeTo(1)
                //,
                //(new Func<Task>(async () =>
                //{
                //    await Task.Delay(200);
                //    await Task.WhenAll(
                //        FoodFat.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength),
                //        FoodFat.FadeTo(1));

                //}))()
                );

            await Task.WhenAll(
                CloseImage.FadeTo(1),
                CloseImage.ScaleTo(1, easing: Easing.SpringOut),
                CloseImage.RotateTo(0),
                FoodCal.ScaleTo(1),
                FoodCal.FadeTo(1),
                FoodCarb.ScaleTo(1),
                FoodCarb.FadeTo(1),
                FoodProt.ScaleTo(1),
                FoodProt.FadeTo(1),
                FoodFat.ScaleTo(1),
                FoodFat.FadeTo(1),
                TimesPressed.ScaleTo(1),
                TimesPressed.FadeTo(1),
                IsCustom.ScaleTo(1),
                IsCustom.FadeTo(1),
                MoreInfo.ScaleTo(1),
                MoreInfo.FadeTo(1));
        }