private void patchesToolStripMenuItem_Click(object sender, EventArgs e) { if (productList.SelectedItems.Count == 1) { ListViewItem lvi = productList.SelectedItems[0]; string productCode = lvi.SubItems[CatalogForm.ColProdCode].Text; PatchForm dlg = new PatchForm(productCode); dlg.ShowDialog(this); } }
private void patchesToolStripMenuItem_Click(object sender, EventArgs e) { if(productList.SelectedItems.Count == 1) { ListViewItem lvi = productList.SelectedItems[0]; string productCode = lvi.SubItems[CatalogForm.ColProdCode].Text; PatchForm dlg = new PatchForm(productCode); dlg.ShowDialog(this); } }