Exemple #1
0
        private void llenaGrilla(int intCodigoPais)
        {
            ServicioGeneralClient servicioGeneral = new ServicioGeneralClient();
            var withBlock = dtgDepartamentos;

            withBlock.DataSource = servicioGeneral.getDepartamentos(3, intCodigoPais, 0);
        }
Exemple #2
0
        private void cargaDepto()
        {
            ServicioGeneralClient servicioGeneral = new ServicioGeneralClient();
            var withBlock = cboDepto;

            withBlock.DataSource    = servicioGeneral.getDepartamentos(1, Convert.ToInt32(cboPais.SelectedValue), 0);
            withBlock.ValueMember   = "CODIGO";
            withBlock.DisplayMember = "NOMBRE";
            withBlock.SelectedValue = 0;
        }