private void listaCarti_DoubleClick(object sender, EventArgs e)
        {
            ListView lista = sender as ListView;

            Carte c = (Carte)lista.SelectedItems[0].Tag;

            using (var report = new ReportCarte(c))
            {
                report.ShowDialog();
            }
        }
 private void utilizator1_Click(object sender, EventArgs e)
 {
     if (listaCarti.Visible == true)
     {
         if (listaCarti.SelectedItems.Count > 0)
         {
             Carte c = (Carte)listaCarti.SelectedItems[0].Tag;
             using (var report = new ReportCarte(c))
             {
                 report.ShowDialog();
             }
         }
         else
         {
             using (var reporti = new ReportCarte())
             {
                 reporti.ShowDialog();
             }
         }
     }
     else
     {
         if (listaImprumut.Visible == true)
         {
             if (listaImprumut.SelectedItems.Count > 0)
             {
                 Imprumut i = (Imprumut)listaImprumut.SelectedItems[0].Tag;
                 using (var formi = new ReportFormular(i))
                 {
                     formi.ShowDialog();
                 }
             }
             else
             {
                 using (var formis = new ReportFormular())
                 {
                     formis.ShowDialog();
                 }
             }
         }
     }
 }