private void listView1_ItemCheck(object sender, ItemCheckEventArgs e)
        {
            var          checks = listView1.CheckedIndices;
            ListViewItem item   = listView1.CheckedItems[0];
            //var item = listView1.CheckedItems;
            string   scanId   = item.SubItems[1].Text; //ScanId
            Metadata metadata = new Metadata();

            //string ScanID = item.SubItems[0].ToString(); //ScanID
            metadata = Controller.GetScanFromDatabaseBasedOnQuery(scanId).First();

            OpenScan openScanObj = new OpenScan(metadata);
        }
        //Open one result
        private void ItemDoubleClick(object sender, EventArgs e)
        {
            //var checks = listView1.CheckedIndices;
            string scanId = string.Empty;

            //ListViewItem item = listView1.CheckedItems[0];
            for (int i = 0; i < listView1.Items.Count; i++)
            {
                if (listView1.Items[i].Selected == true)
                {
                    scanId = listView1.Items[i].SubItems[1].Text; //ScanId
                }
            }
            //var item = listView1.CheckedItems;

            Metadata metadata = new Metadata();

            //string ScanID = item.SubItems[0].ToString(); //ScanID
            metadata = Controller.GetScanFromDatabaseBasedOnQuery(scanId).First();
            OpenScan openScanObj = new OpenScan(metadata);

            openScanObj.Show();
        }