Ejemplo n.º 1
0
 public void AfwezigAanwezig(Gebruiker gebruiker)
 {
     repoGebruiker = new RepositoryGebruiker(new MSSQLGebruiker());
     if (gebruiker.Aanwezig == true)
     {
         repoGebruiker.ZetGebruikerOpAfwezig(gebruiker.ID);
     }
     else
     {
         repoGebruiker.ZetGebruikerOpAanwezig(gebruiker.ID);
     }
 }
 private void txtBezoekerAfmelden_TextChanged(object sender, EventArgs e)
 {
     if (txtBezoekerAfmelden.Text != "")
     {
         try
         {
             rg.ZetGebruikerOpAfwezig(Convert.ToInt32(txtBezoekerAfmelden.Text));
             txtBezoekerAfmelden.Text = "";
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
         AanwezigeBezoekerslijstVullen();
     }
 }