/** Constructor adjusts the information */
        public surgeryInfoBox()
        {
            InitializeComponent();
            SurgeryInfo surgery = new SurgeryInfo();

            surgeryName.Text              += surgery.getSurgeryName();
            firstLineOfAddressLabel.Text  += surgery.getFirstLineOfAddress();
            secondLineOfAddressLabel.Text += surgery.getSecondLineOfAddress();
            surgeryPhoneNumberLabel.Text  += surgery.getPhoneNumber();
        }
        /**
         * Constructor assigns parameters to fields
         *
         * @param parent parent window
         * @param date
         * @param time
         * @param doctorsName name of the staff member
         * @param staffScheudleId
         */
        public BookingWindow(SingleScheduleDayWindow parent, string date, string time, string doctorsName, int staffScheduleId)
        {
            InitializeComponent();
            SurgeryInfo surgeryInfo = new SurgeryInfo();

            this.date                     = date;
            dateBooking.Text              = this.date;
            timeOfBooking.Text            = time;
            doctorsNameLabel.Text         = doctorsName;
            surgeryAddress1Line.Text      = surgeryInfo.getFirstLineOfAddress();
            surgeryAddressSecondLine.Text = surgeryInfo.getSecondLineOfAddress();
            surgeryPhoneNumberLabel.Text  = surgeryInfo.getPhoneNumber();
            this.parent                   = parent;
            this.staffScheduleId          = staffScheduleId;
            this.doctorsName              = doctorsName;
            if (ApplicationState.userType.Equals("admin"))
            {
                patientListBox.Visible = true;
                fillInListOfAllPatients();
            }
            manageUserConfirmationSettings();
            this.CenterToScreen();
        }