Esempio n. 1
0
 private async void EnlazarGrilla()
 {
     isProcessing = true;
     Animacion.ShowLoader(this);
     try {
         Obra obra = cboObra.SelectedItem as Obra;
         dgvPromociones.DataSource = await servicio.ListPromocionByObraAsync(obra.IdObra);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Ocurrió un error: " + ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     Animacion.HideLoader(this);
     isProcessing = false;
 }