private void CargarFiltro() { try { var wsPedidos = new WSPedidos(); ServicePointManager.Expect100Continue = false; this.cmbFiltro.DataSource = wsPedidos.GetFiltro(this.idConexion).Tables[0]; this.cmbFiltro.ValueMember = "idfiltro"; this.cmbFiltro.DisplayMember = "descripcion"; } catch (Exception ex) { MessageBox.Show("Func: CargarFiltro \n Valores :idcon" + this.idConexion); MessageBox.Show(ex.Message.ToString()); } }
private void CargarFiltro() { try { #if !DEBUG var wsPedidos = new some.WSPedidos(); #else var wsPedidos = new WSPedidos(); #endif lblDesc.Text = wsPedidos.Url.ToString(); ServicePointManager.Expect100Continue = false; this.cmbFiltro.DataSource = (object)wsPedidos.GetFiltro().Tables[0]; this.cmbFiltro.ValueMember = "idfiltro"; this.cmbFiltro.DisplayMember = "descripcion"; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }