コード例 #1
0
        private void ReporteButton_Click(object sender, EventArgs e)
        {
            if (entradaArticulos.Count == 0)
            {
                MessageBox.Show("No hay datos");
                return;
            }

            ReporteEntrada reporte = new ReporteEntrada(entradaArticulos);

            reporte.ShowDialog();
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: Rehani03/ProyectoFinal
        private void EntradaDeProductosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RepositorioBase <EntradaProducto> repositorio = new RepositorioBase <EntradaProducto>();
            List <EntradaProducto>            lista       = new List <EntradaProducto>();

            lista = repositorio.GetList(p => true);
            if (lista.Count > 0)
            {
                MessageBox.Show("Un momento por favor.", "ButterSoft", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ReporteEntrada reporte = new ReporteEntrada(lista);
                reporte.ShowDialog();
            }
            else
            {
                MessageBox.Show("No hay datos para imprimir.", "ButterSoft", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
コード例 #3
0
 private void Imprimirbutton_Click(object sender, EventArgs e)
 {
     if (listado == null || listado.Count <= 0)
     {
         MyerrorProvider.Clear();
         MyerrorProvider.SetError(Imprimirbutton, "No hay datos para imprimir.");
         return;
     }
     else
     {
         if (listado.Count > 0)
         {
             ReporteEntrada reporte = new ReporteEntrada(listado);
             reporte.ShowDialog();
         }
         else
         {
             MyerrorProvider.Clear();
             MyerrorProvider.SetError(Imprimirbutton, "No hay datos para imprimir.");
             return;
         }
     }
 }