コード例 #1
0
        private void llenaGrilla(int intCodigoPais)
        {
            ServicioGeneralClient servicioGeneral = new ServicioGeneralClient();
            var withBlock = dtgRegionales;

            withBlock.DataSource = servicioGeneral.getRegionales(3, 0, intCodigoPais);
        }
コード例 #2
0
ファイル: frmTerritorios.cs プロジェクト: alexbeltrang/SIVEDI
 private void CargaRegional()
 {
     if (cboPais.SelectedIndex > 0)
     {
         ServicioGeneralClient servicioGeneral = new ServicioGeneralClient();
         var withBlock = cboRegional;
         withBlock.DataSource    = servicioGeneral.getRegionales(1, 0, Convert.ToInt32(cboPais.SelectedValue));
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     else
     {
         var withBlock = cboRegional;
         withBlock.DataSource = null;
     }
 }