private void canceladasList_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            if (canceladasList.SelectedItems.Count > 0 && e.IsSelected)
            {

                String rfc = canceladasList.SelectedItems[0].SubItems[1].Text.Trim();
                Item itm2 = (Item)tipoCombo.SelectedItem;
                int tipo = itm2.Value;
                Item itm = (Item)periodosCombo.SelectedItem;
                String periodo = itm.Name;

                Detalle1 form = new Detalle1(rfc, tipo, periodo);

               /* foreach (ListViewItem i in canceladasList.SelectedItems)
                {
                    i.Selected = false;
                }*/
                form.ShowDialog();
                //actualiza();
            }
        }
 private void ingresosSATList_SelectedIndexChanged(object sender, EventArgs e)
 {
     int cuantos = ingresosSATList.SelectedItems.Count;
     if (cuantos > 0)
     {
         String rfc = ingresosSATList.SelectedItems[0].SubItems[1].Text.Trim();
         int tipo = 2;//ingresos vigentes
         Item itm = (Item)periodosCombo.SelectedItem;
         String periodo = itm.Name;
         Detalle1 form = new Detalle1(rfc, tipo, periodo);
         form.ShowDialog();
        // actualiza();
     }
 }