Exemple #1
0
        public void FrmRota_Load(object sender, EventArgs e)
        {
            CarregarMapa();

            listBoxDestinos.Items.Clear();
            checkedListBox1.Items.Clear();

            model            get         = new model();
            List <DtoBairro> listBairros = get.getBairros();

            foreach (var l in listBairros)
            {
                try
                {
                    if (!l.bairro.Equals(null))
                    {
                        checkedListBox1.Items.Add(l.bairro);
                    }
                }
                catch
                {
                    checkedListBox1.Items.Add('-');
                }
            }
        }