Exemple #1
0
 public Suceso(DateTime f, int i, Infraccion inf, Vehiculo v)
 {
     fechaSuc   = f;
     id         = i;
     infraccion = inf;
     vehiculo   = v;
     pago       = null;
 }
Exemple #2
0
        public Infraccion buscarInfraccion(int c)
        {
            Infraccion inf = null;

            foreach (Infraccion i in infracciones)
            {
                if (i.sos(c))
                {
                    inf = i;
                }
            }
            return(inf);
        }
Exemple #3
0
 public void agregarInfraccion(Infraccion i)
 {
     infracciones.Add(i);
 }