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); }
static void studenti() { int selector = 0; int maxItem = 6; Console.WriteLine("STUDENT"); Student student = new Student(); if (student.login() == true) { do { Console.WriteLine("Optiuni Student\n"); Console.WriteLine("1-Vizualizare nivel Universitate"); Console.WriteLine("2-Vizualizare Nivel studenti"); Console.WriteLine("3-Find anythink in Universitate by prof "); Console.WriteLine("4-Find anythink in Universitate by materie "); Console.WriteLine("5-Find anythink in Universitate by facultate "); Console.WriteLine("6-Find anythink in UniversitateIntermediere by student "); selector = Convert.ToInt32(Console.ReadLine()); switch (selector) { case 1: { Console.WriteLine("Vizualizare nivel Universitate"); student.ViewDB(Globals.selectALLFromUniversitate); break; } case 2: Console.WriteLine("Vizualizare Nivel studenti"); break; case 3: break; case 4: break; case 5: break; case 6: break; default: break; } } while (selector != maxItem); } else { Console.WriteLine("Eroare la autentificare"); } }
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); }