public void Login() //User Login called by Main Method. //Serves as gateway of the system. { Console.WriteLine("==========User Login=========="); BSCEStudents UserLogin = new BSCEStudents(); string usernameC = ("PUPuser"); string passwordC = ("P103003"); string username, password; Console.Write("username: "******"password: "******"Successfully Logged In"); FacultyoStudent(); } else { Console.WriteLine("Invalid"); } }
public static void Student() { Console.WriteLine("==========Student Room Assignment=========="); Console.WriteLine("==========================================="); Console.WriteLine("Type C, I, or E"); Console.WriteLine(" C - View BSCE-2 Students"); Console.WriteLine(" I - View BSIT-2 Students"); Console.WriteLine(" E - Exit"); char Student = Convert.ToChar(Console.ReadLine()); Student = char.ToUpper(Student); switch (Student) { case 'C': Console.WriteLine("==========BSCE 2 Students=========="); BSCEStudents.BSCE2Students(); break; case 'I': Console.WriteLine("==========BSIT 2 Students=========="); BSITStudents.BSIT2Students(); break; case 'E': Console.WriteLine("The App is Shutting Down, Thank You!"); break; } }