Beispiel #1
0
 private void PositionBedForParallelLayout(BedView bedView, int bedNum, int totalNumOfBeds)
 {
     if (bedNum <= totalNumOfBeds / 2)
     {
         LeftStackPanel.Children.Add(bedView);
     }
     else
     {
         RightStackPanel.Children.Add(bedView);
     }
 }
Beispiel #2
0
 private void PositionBedForLShapeLayout(BedView bedView, int bedNum, int totalNumOfBeds)
 {
     if (bedNum <= totalNumOfBeds / 2)
     {
         LeftStackPanel.Children.Add(bedView);
     }
     else
     {
         BottomStackPanel.Children.Add(bedView);
     }
 }
Beispiel #3
0
        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);
            }
        }