Ejemplo n.º 1
0
        private void ActualizaLocalidades()
        {
            FrmTemplateEntryList frm = (FrmTemplateEntryList)Application.OpenForms["FrmTemplateEntryList"];
            GroupBox             grp = (GroupBox)frm.Controls["grpLocation"];
            ComboBox             cb  = (ComboBox)grp.Controls["cboLocation"];
            var data = InfoLocBusiness.GetLocs();

            cb.ValueMember   = "Id";
            cb.DisplayMember = "LocationCuartel";
            cb.DataSource    = data;
        }
Ejemplo n.º 2
0
        public void LlenaComboLocation()
        {
            cboLocation.DataSource = null;
            cboLocation.Refresh();
            var data = new List <InfoLocDto>();

            data = InfoLocBusiness.GetLocs();
            cboLocation.ValueMember   = "Id";
            cboLocation.DisplayMember = "LocationCuartel";
            cboLocation.DataSource    = data;
            cboLocation.Refresh();
        }