private void pictureBox1_Click(object sender, EventArgs e)
        {
            var viewAppointmentForm = new ViewAppointmentsForm();
            var LinkedForm          = StaffLoginForm.LinkedForm;

            LinkedForm.SetPanelForm(viewAppointmentForm);
        }
        private void updateButton_Click(object sender, EventArgs e)
        {
            appointment1.appointment_details   = detailsTxtBox.Text;
            appointment1.appointment_time      = updateTime.Text;
            appointment1.appointment_date      = updateDate.Text;
            appointment1.appointment_completed = chkBxCompleted.Checked;

            var updated = appointmentService.UpdateAppointment(appointment1);

            MessageBox.Show(updated ? "Appointment Successfully Updated" : "Failed to Update Appointment");

            if (!updated)
            {
                return;
            }

            var viewAppointmentForm = new ViewAppointmentsForm();

            StaffLoginForm.LinkedForm.SetPanelForm(viewAppointmentForm);
        }