private void generateKeysToolStripMenuItem_Click(object sender, EventArgs e) { var genform = new AddressGen(); genform.ShowDialog(); if (genform.GeneratedItems != null && genform.GeneratedItems.Count > 0) { KeyCollection.AddItemRange(genform.GeneratedItems); } }