private void printBanknoteVouchersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <KeyCollectionItem> itemsToPrint = getEncryptedItemsToPrint();

            if (itemsToPrint == null)
            {
                return;
            }
            var printform = new PrintVouchers();

            printform.Items = itemsToPrint;
            printform.ShowDialog();
            if (printform.PrintAttempted)
            {
                foreach (ListViewItem lvi in listView1.Items)
                {
                    if (lvi.Checked)
                    {
                        lvi.Checked = false;
                    }
                }
            }
        }
        private void printBanknoteVouchersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List<KeyCollectionItem> itemsToPrint = getEncryptedItemsToPrint();
            if (itemsToPrint == null) return;
            var printform = new PrintVouchers();
            printform.Items = itemsToPrint;
            printform.ShowDialog();
            if (printform.PrintAttempted) {
                foreach (ListViewItem lvi in listView1.Items) {
                    if (lvi.Checked) lvi.Checked = false;

                }
            }
        }