Exemple #1
0
 private void comboBox_Aktivitet_Instruktor_SelectedIndexChanged(object sender, EventArgs e)
 {
     aktuellInstruktor = (Instruktor)comboBox_Aktivitet_Instruktor.SelectedItem;
 }
Exemple #2
0
        private void listBox_Instruktor_SelectedIndexChanged(object sender, EventArgs e)
        {
            aktuellInstruktor = (Instruktor)listBox_Instruktor.SelectedItem;

            textBox_Instruktor_Personnummer.Text = aktuellInstruktor.Instruktorsnummer;
            textBox_Instruktor_Fornamn.Text = aktuellInstruktor.Fornamn;
            textBox_Instruktor_Efternamn.Text = aktuellInstruktor.Efternamn;
            textBox_Instruktor_Gatuadress.Text = aktuellInstruktor.Gatuadress;
            textBox_Instruktor_Postnummer.Text = aktuellInstruktor.Postnummer;
            textBox_Instruktor_Ort.Text = aktuellInstruktor.Postadress;
            textBox_Instruktor_Telefonnummer.Text = aktuellInstruktor.Telefonnummer;
            textBox_Instruktor_Mailadress.Text = aktuellInstruktor.Mailadress;

            listBoxKompetens.DataSource = Databasfunktioner.HämtaKompetenser(aktuellInstruktor.Instruktorsnummer);
            listBoxSchemalagdaPass.DataSource = Databasfunktioner.HämtaInstruktorsSchemalagdaPass(aktuellInstruktor.Instruktorsnummer);
        }