private UbicacionFlyweightFactory()
        {
            hashBarrios = new Barrios();
            hashLocalidades = new Localidades();
            hashPaises = new Paises();
            hashProvincias = new Provincias();

            hashBarrios.RecuperarTodos();
            hashLocalidades.RecuperarTodas();
            hashPaises.RecuperarTodos();
            hashProvincias.RecuperarTodas();
        }
        private GI.BR.Propiedades.Ubicaciones.Barrios GetBarriosSeleccionados()
        {
            GI.BR.Propiedades.Ubicaciones.Barrios barrios = new GI.BR.Propiedades.Ubicaciones.Barrios();

            GI.BR.Propiedades.Ubicaciones.Barrio b1 = GI.BR.Propiedades.Ubicaciones.UbicacionFlyweightFactory.GetInstancia.GetBarrio(int.Parse(ddlBarrio1.SelectedValue));
            GI.BR.Propiedades.Ubicaciones.Barrio b2 = GI.BR.Propiedades.Ubicaciones.UbicacionFlyweightFactory.GetInstancia.GetBarrio(int.Parse(ddlBarrio2.SelectedValue));
            GI.BR.Propiedades.Ubicaciones.Barrio b3 = GI.BR.Propiedades.Ubicaciones.UbicacionFlyweightFactory.GetInstancia.GetBarrio(int.Parse(ddlBarrio3.SelectedValue));

            if (b1 != null)
                barrios.Add(b1);

            if (b2 != null && !barrios.Existe(b2) )
                barrios.Add(b2);

            if (b3 != null && !barrios.Existe(b3))
                barrios.Add(b3);

            return barrios;
        }