Beispiel #1
0
        static void Main(string[] args)
        {
            Dzejolis     dzejolis     = new Dzejolis();
            DzejolisList dzejolisList = new DzejolisList();

            //dzejolis.LasitUnIzvadit();
            //dzejolis.Rakstit(dzejolis.LasitUnApgriezt());

            dzejolisList.LasitUnIzvaditSarakstu();
            Console.WriteLine();
            dzejolisList.RakstitSarakstu(dzejolisList.LasitUnSamainit());
            Console.ReadLine();
        }
        public void Interfeiss()
        {
            String choice = "";

            while (choice != "0")
            {
                Console.WriteLine("1, lai pievienotu, 2, lai izvaditu sarakstu,3, lai mekletu pec ID, 4, lai izdzestu, 0, lai izietu");
                choice = Console.ReadLine();

                switch (choice)
                {
                case "1":
                    PievienotSarakstam();
                    break;

                case "2":
                    IzvaditLietotajuSarakstu();
                    break;

                case "3":
                    Search();
                    break;

                case "4":
                    Izdzest();
                    break;

                case "5":
                    Dzejolis fails = new Dzejolis();
                    //fails.RakstitSarakstu(lietotaji);
                    break;

                case "0":
                    break;

                default:
                    Console.WriteLine("Nepareiza ievade");
                    break;
                }
            }
        }