/// <summary> /// Highlights all Facilities that are selected on the ReceptionScreen /// </summary> /// <param name="areas"></param> public void HighlightFacility(IArea[] areas) { DrawBackground(); DrawForeground(); BackgroundLayer.Image = _BackgroundBuffer; using (Graphics g = Graphics.FromImage(_BackgroundBuffer)) { foreach (IArea area in areas) { Pen p = new Pen(Color.Red) { Width = 5 }; g.DrawRectangle(new Pen(Color.Red, 5), area.PositionX * 60, (Hotel.Floors.Length - 1 - area.PositionY - (area.Height - 1)) * 55, area.Width * 60, area.Height * 55); } } BackgroundLayer.Invalidate(); }