Example #1
0
        private void FixupFamily2(FamilyDto previousValue)
        {
            if (previousValue != null && previousValue.Family1.Contains(this))
            {
                previousValue.Family1.Remove(this);
            }

            if (Family2 != null)
            {
                if (!Family2.Family1.Contains(this))
                {
                    Family2.Family1.Add(this);
                }
                if (FamilyId != Family2.Id)
                {
                    FamilyId = Family2.Id;
                }
            }
        }
Example #2
0
        private void FixupFamily(FamilyDto previousValue)
        {
            if (previousValue != null && previousValue.Items.Contains(this))
            {
                previousValue.Items.Remove(this);
            }

            if (Family != null)
            {
                if (!Family.Items.Contains(this))
                {
                    Family.Items.Add(this);
                }
                if (FamilyId != Family.Id)
                {
                    FamilyId = Family.Id;
                }
            }
        }
Example #3
0
 private void ConfigureMinMaxValues(FamilyDto family)
 {
     spinTotalUtilityRate.Properties.MinValue = family.MinimunProfit;
     spinTotalUtilityRate.Properties.MaxValue = 100;
     spinDiscountRate.Properties.MaxValue = family.MaximunDiscount;
 }