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