private void PositionBedForParallelLayout(BedView bedView, int bedNum, int totalNumOfBeds) { if (bedNum <= totalNumOfBeds / 2) { LeftStackPanel.Children.Add(bedView); } else { RightStackPanel.Children.Add(bedView); } }
private void PositionBedForLShapeLayout(BedView bedView, int bedNum, int totalNumOfBeds) { if (bedNum <= totalNumOfBeds / 2) { LeftStackPanel.Children.Add(bedView); } else { BottomStackPanel.Children.Add(bedView); } }
private void PositionBedAsPerIcuLayout(BedDataModel bedDataModel, int bedNum, int totalNumOfBeds, string layout) { BedView bed = new BedView(bedDataModel); if (layout.Equals("Parallel")) { PositionBedForParallelLayout(bed, bedNum, totalNumOfBeds); } else { PositionBedForLShapeLayout(bed, bedNum, totalNumOfBeds); } }