/// <summary> /// Перед вызовом /// </summary> public override void Calc() { // Масса ед Weight = RoundHelper.Round3Digits(WeightUnit); // Масса общая WeightTotal = RoundHelper.Round2Digits(Weight * Meters); Amount = WeightTotal; }
public virtual void Calc() { // Кол стержней if (Width != 0 && Step != 0) { Count = CalcCountByStep(Width, Step) * Rows; } // Масса ед. кг. Weight = RoundHelper.Round3Digits(WeightUnit * ConvertMmToMLength(Length)); // Масса всех стержней WeightTotal = RoundHelper.Round2Digits(Weight * Count); Amount = WeightTotal; }
public void Calc() { // Масса ед. кг. Weight = RoundHelper.Round3Digits(WeightUnit * ConvertMmToMLength(Length)); Amount = Weight; }