private void refraction_send_Click(object sender, EventArgs e) { using (HttpCreateClient client = new HttpCreateClient()) { try { client.AddRefraction(refraction_ID.Text, (float)refraction_OD_Sph.Value, (float)refraction_OD_Cyl.Value, (int)refraction_OD_ax.Value, refraction_OD_UcVA.Text, refraction_OD_BCVA.Text, (float)refraction_OS_Sph.Value, (float)refraction_OS_Cyl.Value, (int)refraction_OS_ax.Value, refraction_OS_UcVA.Text, refraction_OS_BCVA.Text, (float)refraction_OD_CVD.Value, (float)refraction_OS_CVD.Value); richTextBox_msg.Text = "Refraction OK"; } catch (Exception ex) { create_send.Visible = false; schedule_send.Visible = false; refraction_send.Visible = false; richTextBox_msg.AppendText("Refraction- Send Error\n"); richTextBox_msg.Text = ex.Message; } } }
private void schedule_send_Click(object sender, EventArgs e) { using (HttpCreateClient client = new HttpCreateClient()) { try { client.ScheduleProcedure(schedule_ID.Text, schedule_date.Value, schedule_AccessionNumber.Text, schedule_physician.Text); richTextBox_msg.Text = "Schedule OK"; } catch (Exception ex) { create_send.Visible = false; schedule_send.Visible = false; refraction_send.Visible = false; richTextBox_msg.AppendText("Schedule- Send Error\n"); richTextBox_msg.Text = ex.Message; } } }
private void btn_Create_Click(object sender, EventArgs e) { using (HttpCreateClient client = new HttpCreateClient()) { try { client.CreatePatient(create_PMSid.Text, create_ID.Text, create_FN.Text, create_LN.Text, create_gender.Text, create_dateTimePicker.Value); richTextBox_msg.Text = "Create OK"; } catch (Exception ex) { create_send.Visible = false; schedule_send.Visible = false; refraction_send.Visible = false; richTextBox_msg.AppendText("Create- Send Error\n"); richTextBox_msg.Text = ex.Message; } } }