public AdminConsole() { InitializeComponent(); instructorsUserNames = DBData.getInstructorsUsernames(); ControlFunctions.populateCombo(comboBoxInstructor, instructorsUserNames); listViewDay.Visible = false; listViewWeek.Visible = false; listViewCarsAssigned.Visible = false; }
public ClientConsole(string clientUsername) { InitializeComponent(); //It loads the client user name variable userName = clientUsername; //It loads the Instructor User Names instructorsUserNames = DBData.getInstructorsUsernames(); labelUserName.Text = userName; //It loads the Appointments for the Client clientAppointments = getClientAppointments(userName, DateTime.Today); //It creates the Appointments ListView listViewAppointments.Items.Clear(); createListViewAppointmentsReport(); }