/// <summary> /// Gets the result. /// </summary> /// <param name="theethMessure">The theeth messure.</param> /// <returns></returns> public static BoltonTotal GetBoltonTotalResult(RoothCalculationEntity theethMessure) { var result = new BoltonTotal(); var theeths = TheethsSum.GetResults(theethMessure); result.Maxilar12Pac = theeths.SumSuperiorTwelve; result.Mandibular12Pac = theeths.SumInferiorTwelve; result.Total = CalculationBase.RoundUpResult(result.Mandibular12Pac / result.Maxilar12Pac * 100); result.IsSuperiorExcess = result.Total < BoltonTotalBreakPoint; result.Maxilar12Ideal = BoltonTable.FindBoltonTotalByMandibularValue(result.Mandibular12Pac); result.SuperiorExcess = result.Maxilar12Pac - result.Maxilar12Ideal; result.Mandibular12Ideal = BoltonTable.FindBoltonTotalByMaxilarValue(result.Maxilar12Pac); result.InferiorExcess = result.Mandibular12Pac - result.Mandibular12Ideal; return(result); }
public BoltonViewModel(BoltonTotal modelTotal, BoltonPreviousRelation modelPrevious) { this.modelTotal = modelTotal; this.modelPrevious = modelPrevious; }
public BoltonViewModel() { modelTotal = new BoltonTotal(); modelPrevious = new BoltonPreviousRelation(); }