示例#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())
            {

            }
        }