private void btnBestelBV_Click(object sender, EventArgs e)
 {
     if (lbFilms.SelectedItem is Bioscoopvertoning)
     {
         Bioscoopvertoning selectedBV    = (Bioscoopvertoning)lbFilms.SelectedItem;
         Stoel             selectedStoel = (Stoel)lbStoel.SelectedItem;
         Bestelling        bestelling    = new Bestelling(lid, selectedBV, selectedStoel);
         MessageBox.Show("Betaal €" + bestelling.Price);
         ShowInfo();
     }
     else
     {
         MessageBox.Show("Deze film draait momenteel niet in de bioscoop.");
     }
 }
 private void btnVerwijderVertoning_Click(object sender, EventArgs e)
 {
     if (lbBioscoopvertoningen.SelectedItem == null)
     {
         MessageBox.Show("Selecteer een bioscoopvertoning uit de lijst");
         lbBioscoopvertoningen.Focus();
         return;
     }
     if (lbBioscoopvertoningen.SelectedItem is Bioscoopvertoning)
     {
         Bioscoopvertoning vertoning = lbBioscoopvertoningen.SelectedItem as Bioscoopvertoning;
         bioscoop.VerwijderFilm(vertoning);
         refreshData();
     }
 }
 private void ShowStoel()
 {
     if (lbFilms.SelectedItem is Bioscoopvertoning)
     {
         Bioscoopvertoning bv = (Bioscoopvertoning)lbFilms.SelectedItem;
         foreach (Stoel stoel in bv.BioscoopZaal.Stoelen)
         {
             foreach (Bestelling b in bv.Bestellingen)
             {
                 if (stoel != b.Stoel)
                 {
                     lbStoel.Items.Add(stoel);
                 }
             }
         }
     }
 }
 private void btnBestelBV_Click(object sender, EventArgs e)
 {
     if (lbFilms.SelectedItem is Bioscoopvertoning)
     {
         if (lbStoel.SelectedItem == null)
         {
             MessageBox.Show("Selecteer een stoel");
             return;
         }
         Bioscoopvertoning selectedBV    = (Bioscoopvertoning)lbFilms.SelectedItem;
         Stoel             selectedStoel = (Stoel)lbStoel.SelectedItem;
         Bestelling        bestelling    = new Bestelling(lid, selectedBV, selectedStoel);
         MessageBox.Show("Betaal €" + bestelling.Price);
         ShowInfo();
     }
     else
     {
         MessageBox.Show("Selecteer een vertoning uit de lijst met films");
     }
 }
 private void ShowStoel()
 {
     if (lbFilms.SelectedItem is Bioscoopvertoning)
     {
         Bioscoopvertoning bv = (Bioscoopvertoning)lbFilms.SelectedItem;
         lbStoel.Items.Clear();
         foreach (Stoel stoel in bv.BioscoopZaal.Stoelen)
         {
             bool bezet = false;
             foreach (Bestelling b in bv.Bestellingen)
             {
                 if (stoel == b.Stoel)
                 {
                     bezet = true;
                 }
             }
             if (!bezet)
             {
                 lbStoel.Items.Add(stoel);
             }
         }
     }
 }