Exemplo n.º 1
0
        private void searchButton_Click(object sender, EventArgs e)
        {
            string appointmentId = appointmentIdBox.Text;

            appointmentDetails   = SqlUpdater.getAppointmentDetails(appointmentId);
            customerIdLabel.Text = appointmentDetails["customerId"];
            typeLabel.Text       = appointmentDetails["type"];
            startLabel.Text      = appointmentDetails["start"];
            endLabel.Text        = appointmentDetails["end"];
        }
Exemplo n.º 2
0
        private void searchButton_Click(object sender, EventArgs e)
        {
            string appointmentId = searchBar.Text;

            aForm = SqlUpdater.getAppointmentDetails(appointmentId);
            customerIdBox.Text = aForm["customerId"];
            typeBox.Text       = aForm["type"];
            startTimeBox.Value = DateTime.Parse(SqlUpdater.convertToTimezone(aForm["start"]));
            endTimeBox.Value   = DateTime.Parse(SqlUpdater.convertToTimezone(aForm["end"]));
        }