Exemple #1
0
        public void modificarInfraccion(TipoInfraccion ti)
        {
            try
            {
                TipoInfraccion tipoInf = tipoInfracciones.Find(x => x.Codigo == ti.Codigo);
                tipoInfracciones.Remove(tipoInf);
                tipoInfracciones.Add(ti);
            }
            catch (Exception e)
            {
            }

            /*
             * tipoInf.Detalle = ti.Detalle;
             * tipoInf.Importe = ti.Importe;
             * if (ti.getTipo() == "leve")
             *  tipoInf = (InfraccionLeve)tipoInf;
             * else
             *  tipoInf = (InfraccionLeve)tipoInf;
             */
        }
Exemple #2
0
 public bool yaExisteInfraccion(TipoInfraccion ti)
 {
     return(tipoInfracciones.Contains(ti));
 }
Exemple #3
0
 public void agregarTipoInfraccion(TipoInfraccion ti)
 {
     tipoInfracciones.Add(ti);
 }