public PatientManager() { this.pcs = new PatientCardService(); this.patients = pcs.GetPatients(); this.PrintScreen(); string cmd; while (!(cmd = Console.ReadLine()).Equals("EXIT")) { if (cmd.Contains("REG")) { this.Register(); } else if (cmd.Contains("DEL")) { this.Delete(cmd); } else if (cmd.Contains("EDIT")) { this.Edit(cmd); } else if (cmd.Contains("P")) { this.Detail(cmd); Console.Write("Akce: "); } else { Console.WriteLine(Strings.PM_command); Console.Write("Akce: "); } } }
public PatientManager() { this.pcs = new PatientCardService(); foreach (Patient p in pcs.GetPatients()) { } }
public RequestList() { InitializeComponent(); this.service = new PatientCardService(); Patient p = new Patient(); p.ID = "7509223123"; this.patient = p; List<Prescription> prs; try { prs = service.GetPatientPrescriptions(patient); prs.ForEach(x => prescriptionBindingSource.Add(x)); } catch (Exception ex) { MessageBox.Show(ex.Message); this.Close(); } this.prescriptionList.RowsAdded += prescriptionList_RowsAdded; this.prescriptionList.UserDeletingRow += prescriptionList_UserDeletingRow; }