public void SetDialyzingFluidFlow(DialyzingFluid toSuccessor, DialyzingFluid fromPredecessor) { IncomingFluidTemperature = fromPredecessor.Temperature; IncomingQuantityOfDialyzingFluid = fromPredecessor.Quantity; toSuccessor.CopyValuesFrom(fromPredecessor); toSuccessor.Quantity = IncomingSuctionRateOnDialyzingFluidSide; toSuccessor.WasUsed = true; }
public DialyzingFluid SetDialyzingFluidFlow(DialyzingFluid fromPredecessor) { IncomingFluidTemperature = fromPredecessor.Temperature; IncomingQuantityOfDialyzingFluid = fromPredecessor.Quantity; var toSuccessor = fromPredecessor; toSuccessor.Quantity = IncomingSuctionRateOnDialyzingFluidSide; toSuccessor.WasUsed = true; return(toSuccessor); }
/* * public void CopyValuesFrom(DialyzingFluid @from) * { * Quantity = from.Quantity; * KindOfDialysate = from.KindOfDialysate; * ContaminatedByBlood = from.ContaminatedByBlood; * WasUsed = from.WasUsed; * Temperature = from.Temperature; * } */ public static DialyzingFluid Default() { var dialyzingFluid = new DialyzingFluid(); return(dialyzingFluid); }