private void Placeholder_Click(object sender, RoutedEventArgs e) { Form form = new Form(); form.ReportOrPrescription = Prescription.reportOrPrescription; form.InterventionId = AddExamination.intervId; form.Description = TextArea.Text; if ((String)kombo.SelectedItem == "Specialist") { form.FFormType = FormType.Specialist; } else if ((String)kombo.SelectedItem == "LabTesting") { form.FFormType = FormType.LabTesting; } else { form.FFormType = FormType.StationaryTreatment; } formController.AddForm(form); AddExamination add = new AddExamination(); add.Show(); this.Close(); }
private void PackIcon_MouseDown(object sender, MouseButtonEventArgs e) { AddExamination add = new AddExamination(); add.Show(); this.Close(); }
private void addClick(object sender, RoutedEventArgs e) { AddExamination add = new AddExamination(); add.Show(); this.Close(); }
private void submitClick(object sender, RoutedEventArgs e) { //sacuvaj terapiju Therapy therapy = new Therapy(); therapy.PatientId = Appointments.interv.PatientId; therapy.MedicationName = ((Medication)dropMedications.SelectedItem).Name; therapy.Dose = Convert.ToInt32(dose.Text); therapyController.AddTherapy(therapy); AddExamination add = new AddExamination(); add.Show(); this.Close(); }