Esempio n. 1
0
        public Foto_Imovel(int Codigo)
        {
            InitializeComponent();
            HeaderToolStrip.Renderer = new MySR();
            Imovel_bll         imovelRepository = new Imovel_bll(_connection);
            List <Foto_imovel> Lista            = imovelRepository.Lista_Foto_Imovel(Codigo);

            foreach (GTI_Models.Models.Foto_imovel item in Lista)
            {
                string _foto = _path + "09\\" + item.Pasta.ToString("00") + "\\" + item.Arquivo;
                Lista_Fotos.Add(_foto);
            }
            _pos = 0; _total = Lista_Fotos.Count;

            AnteriorButton.Enabled = false;
            if (_total == 1)
            {
                ProximoButton.Enabled = false;
            }
            Carrega_Foto(_pos);
        }