コード例 #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);
        }