示例#1
0
文件: Program.cs 项目: vochita/PSSC
        static void studenti()
        {
            int selector = 0;
            int maxItem=2;
            Console.WriteLine("STUDENT");
            Student student = new Student();
            do
            {
                Console.WriteLine("Optiuni Student\n");
                Console.WriteLine("1-Vizualizare nivel Universitate");
                Console.WriteLine("2-Vizualizare Nivel studenti");
                selector = Convert.ToInt32(Console.ReadLine());
                switch(selector)
                {
                    case 1: student.ViewDB(Globals.selectALL, Globals.Tabela1);
                        break;
                    case 2: student.ViewDB(Globals.selectALL, Globals.Tabela2);
                        break;
                    default: break;
                }

            } while (selector != maxItem);
        }