Ejemplo n.º 1
0
Archivo: Suceso.cs Proyecto: TPSUM/TP1
 public Suceso(DateTime f, int i, Infraccion inf, Vehiculo v)
 {
     fechaSuc   = f;
     id         = i;
     infraccion = inf;
     vehiculo   = v;
     pago       = null;
 }
Ejemplo n.º 2
0
        public Infraccion buscarInfraccion(int c)
        {
            Infraccion inf = null;

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