private void frmAdminVehiculos_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); LoadIngresar(); LoadEditar(); LoadEliminar(); }
private void frmBuscarAceite_Load(object sender, EventArgs e) { //instancia de nuevo objeto de conexion a servicio web cliente = new LavadoraService.LavadoraServiceClient(); cbxCriBusqueda.DropDownStyle = ComboBoxStyle.DropDownList; txtBusqueda.Visible = false; }
private void frmAdminClientes_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); //PESTAÑA DE EDITAR LoadEditar(); //PESTAÑA ELIMINAR LoadEliminar(); }
private void frmComprobanteCompra_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); //PESTAÑA DE EDITAR LoadIngresar(); //PESTAÑA DE BUSQUEDA LoadBuscar(); //PESTAÑA DE ANULAR LoadAnular(); }
private void frmAdminFiltros_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); idVehiculos = new List <int>(); LimpiarCacheListaVehiculos(); this.toolTipMsj.SetToolTip(this.rtxtCodigos, "Ingrese un código por linea"); LoadIngresar(); LoadEditar(); LoadEliminar(); }
private void frmNotificaciones_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); try { DataTable notificaciones = cliente.ObtenerNotificaciones(); dgvNotificaciones.DataSource = notificaciones; } catch (Exception) { DialogResult dialogResult = MessageBox.Show("Ha ocurrido un error de connección", "Aviso", MessageBoxButtons.OK); } }
private void frmBusquedaVehiculo_Load(object sender, EventArgs e) { try { cliente = new LavadoraService.LavadoraServiceClient(); BloquearEdicionCombos(); //Llenado de combo cbxMarcaVehiculo.Items.AddRange(cliente.ObtenerMarcaVehiculo()); } catch (EndpointNotFoundException) { DialogResult dialogResult = MessageBox.Show("Ha ocurrido un error de conexión", "Aviso", MessageBoxButtons.OK); } catch (Exception) { DialogResult dialogResult = MessageBox.Show("Ha ocurrido un error", "Aviso", MessageBoxButtons.OK); } }
private void frmAgregarVehiculo_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); dtLista = new DataTable(); dtLista.Clear(); dtLista.Columns.Add("ID"); dtLista.Columns.Add("Marca"); dtLista.Columns.Add("Modelo"); dtLista.Columns.Add("Tipo_Motor"); dtLista.Columns.Add("Anio"); if (cliente.ObtenerEstadoListaVehiculos()) { dtLista = cliente.ObtenerVehiculosFiltro(cliente.ObtenerIDListaVehiculos()); EliminarRepetidos(dtLista); } cbxCriBusquedaE.DropDownStyle = ComboBoxStyle.DropDownList; txtBusquedaE.Visible = false; }
private void frmGenerarReporteCompras_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); }
private void frmLogin_Load(object sender, EventArgs e) { cliente = new LavadoraService.LavadoraServiceClient(); }