private bool Login() { Console.Clear(); Console.WriteLine("Login:\n"); Console.Write("Username: "******"Password: "******"\n\nInvalid User Credentials!"); Console.ReadKey(); return(false); } catch (NoUserException) { bool Debug = true; if (Debug) { this.Init(); } else { EmployeeUI EUI = new EmployeeUI(); EUI.CreateEmployee(); } return(false); } }
private void RunSwitch(string userInput) { CustomerUI CUI = new CustomerUI(); EmployeeUI EUI = new EmployeeUI(); ScheduleUI SUI = new ScheduleUI(); switch (userInput) { case "1": CUI.ShowCustomers(); break; case "2": EUI.ShowEmployees(); break; case "3": CUI.UpdateCustomerDatabase(); break; case "4": EUI.UpdateEmployeeDatabase(); break; case "5": SUI.ShowSchedule(LoggedIn); break; case "6": SUI.ScheduleMenu(); break; case "0": ProgramRunning = false; break; default: Console.WriteLine("Incorrect Input"); Console.ReadKey(); break; } }