コード例 #1
0
        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: ");
                }
            }
        }
コード例 #2
0
        public PatientManager()
        {
            this.pcs = new PatientCardService();
            foreach (Patient p in pcs.GetPatients())
            {

            }
        }
コード例 #3
0
ファイル: RequestList.cs プロジェクト: thompsonx/vis_ordinace
 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;
 }