Exemplo n.º 1
0
        public void MaakNieuweMotivatie(Organisatie org)
        {
            Motivatie m = new Motivatie();

            m.Organisatie = org;
            Motivaties.Add(m);
        }
Exemplo n.º 2
0
        public void DienMotivatieIn(Motivatie motivatie)
        {
            CurrentState.DienMotivatieIn(motivatie);
            motivatie.DatumIngediend = DateTime.Now;
            Melding melding = new Melding($"Je groep {Naam} heeft een motiavtie ingediend!");

            VerstuurMeldingNaarAlleCursisten(melding);
        }
Exemplo n.º 3
0
 public void DienMotivatieIn(Motivatie motivatie)
 {
     if (Groep == null)
     {
         throw new ArgumentException($"{Naam} {Voornaam} u bent nog niet ingeschreven in een groep");
     }
     Groep.DienMotivatieIn(motivatie);
 }
Exemplo n.º 4
0
        public Motivatie GeefGoedgekeurdeMotivatie()
        {
            Motivatie motivatie = Motivaties.Find(c => c.Goedgekeurd);

            if (motivatie == null)
            {
                return(null);
            }

            return(Motivaties.Find(c => c.Goedgekeurd));
        }
Exemplo n.º 5
0
        public int GeefStatus()
        {
            Motivatie m = GeefLaatstIngediendeMotivatie();

            if (m.Contactpersonen.Count >= 1)
            {
                return(3);
            }
            if (m.Inhoud != null)
            {
                return(2);
            }
            if (m.Organisatie != null)
            {
                return(1);
            }
            return(0);
        }
Exemplo n.º 6
0
 public void MaakBericht(Motivatie motivatie)
 {
     Bericht           = new Bericht(motivatie);
     BerichtAangemaakt = true;
 }
Exemplo n.º 7
0
 public abstract void DeleteMotivatie(Motivatie motivatie);
Exemplo n.º 8
0
 public abstract void UpdateMotivatie(Motivatie motivatie);
Exemplo n.º 9
0
 public abstract void AddMotivatie(Motivatie motivatie);
Exemplo n.º 10
0
 public Bericht(Motivatie motivatie)
 {
     Motivatie    = motivatie;
     Aankondiging = string.Format(motivatie.Organisatie.Naam + " heeft het Goed Bezig label gekregen!");
 }