Ejemplo n.º 1
0
        private static void StudyObjectSelectors()
        {
            Console.WriteLine(" --- StudyObjectSelectors ---");

            DateSet dataSet = new DateSet();

            dataSet.CreateObjectss();

            char ch = '\0';

            do
            {
                DicaseTypeSelector dicasetypeTabulator = new DicaseTypeSelector();
                DicaseType         inst1 = dicasetypeTabulator.SelectInstance(dataSet.DicaseTypes);
                Console.WriteLine("inst1:\n" + inst1);

                Console.WriteLine("\tПродовжити (<Enter>): ");
                ConsoleKeyInfo cki = Console.ReadKey();
                ch = cki.KeyChar;
            } while (ch == '\r');
            do
            {
                DicaseSelector dicaseTabulator = new DicaseSelector();
                Discase        inst1           = dicaseTabulator.SelectInstance(dataSet.Discases);
                Console.WriteLine("inst1:\n" + inst1);

                Console.WriteLine("\tПродовжити (<Enter>): ");
                ConsoleKeyInfo cki = Console.ReadKey();
                ch = cki.KeyChar;
            } while (ch == '\r');

            do
            {
                PacientSelector patcientTabulator = new PacientSelector();
                Patcient        inst2             = patcientTabulator.SelectInstance(dataSet.Patcients);
                Console.WriteLine("inst2:\n" + inst2);

                Console.WriteLine("\tПродовжити (<Enter>): ");
                ConsoleKeyInfo cki = Console.ReadKey();
                ch = cki.KeyChar;
            } while (ch == '\r');
            Console.ReadKey();
        }