Esempio n. 1
0
        public AdminConsole()
        {
            InitializeComponent();

            instructorsUserNames = DBData.getInstructorsUsernames();
            ControlFunctions.populateCombo(comboBoxInstructor, instructorsUserNames);
            listViewDay.Visible          = false;
            listViewWeek.Visible         = false;
            listViewCarsAssigned.Visible = false;
        }
Esempio n. 2
0
 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();
 }