示例#1
0
        private Color ClickedRoomColorQuery(Color _roomColor, int _roomNo)
        {
            CheckInOut checkInOut = this.Parent as CheckInOut;

            if (_roomColor == Color.Lime)
            {
                RoomControlService.AddingRoom(_roomNo, checkInOut.GetDate());
                return(Color.Salmon);
            }
            else
            {
                return(Color.Lime);
            }
        }
示例#2
0
        public void ColorTransition(Booking booking)
        {
            foreach (Room roomIsDelete in RoomControlService.GetFullRooms(booking))
            {
                switch (roomIsDelete.RoomNo)
                {
                case 1:
                    Room1.BackColor = Color.Salmon;
                    break;

                case 2:
                    Room2.BackColor = Color.Salmon;
                    break;

                case 3:
                    Room3.BackColor = Color.Salmon;
                    break;

                case 4:
                    Room4.BackColor = Color.Salmon;
                    break;

                case 5:
                    Room5.BackColor = Color.Salmon;
                    break;

                case 6:
                    Room6.BackColor = Color.Salmon;
                    break;

                case 7:
                    Room7.BackColor = Color.Salmon;
                    break;

                case 8:
                    Room8.BackColor = Color.Salmon;
                    break;

                case 9:
                    Room9.BackColor = Color.Salmon;
                    break;

                default:
                    MessageBox.Show("No data matching the room number was found");
                    break;
                }
            }
        }