private void frmProductos_Load(object sender, EventArgs e) { productoBindingSource.DataSource = productoOperations.GetAll(); categoriaBindingSource.DataSource = categoriaOperations.GetAll(); colorBindingSource.DataSource = colorOperations.GetAll(); marcaBindingSource.DataSource = marcaOperations.GetAll(); gvProductos.BestFitColumns(); }
private void btnActualizar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { productoBindingSource.DataSource = productoOperations.GetAll(); marcaBindingSource.DataSource = marcaOperations.GetAll(); categoriaBindingSource.DataSource = categoriaOperations.GetAll(); colorBindingSource.DataSource = colorOperations.GetAll(); gvProductos.BestFitColumns(); }
private void frmNProducto_Load(object sender, EventArgs e) { categoriaBindingSource.DataSource = categoriaOperations.GetAll(); colorBindingSource.DataSource = colorOperations.GetAll(); marcaBindingSource.DataSource = marcaOperations.GetAll(); Misc.actualiza = true; }
public async Task <IActionResult> Get() { if (colorOperations.GetAll().Count > 0) { return(StatusCode(StatusCodes.Status201Created, new { status = true, message = "Consulta exitosa", colorOperations = colorOperations.GetAll(), })); } else { return(StatusCode(StatusCodes.Status401Unauthorized, new { status = false, message = "Color Erroneo", colorOperations = "null" })); } }
public async Task <IActionResult> Get() { if (data.GetAll().Count() > 0) { return(StatusCode(StatusCodes.Status201Created, new { status = true, message = "Consulta exitosa", data = data.GetAll(), })); } else { return(StatusCode(StatusCodes.Status401Unauthorized, new { status = false, message = "Error al consultar color", data = "null" })); } }
private void frmColores_Load(object sender, EventArgs e) { colorBindingSource.DataSource = colorOperations.GetAll(); gvColores.BestFitColumns(); }
private void frmNMProducto_Load(object sender, EventArgs e) { marcaBindingSource.DataSource = marcaOperations.GetAll(); categoriaBindingSource.DataSource = categoriaOperations.GetAll(); colorBindingSource.DataSource = colorOperations.GetAll(); }