private void EditDisc() { if (lV_products.SelectedItems.Count > 0) { if (lV_products.SelectedItems[0].Tag is Disc) { EditDisc editDiscDialog = new EditDisc(lV_products.SelectedItems[0].Tag as Disc); editDiscDialog.ShowDialog(); } } }
private void editProductToolStripMenuItem_Click(object sender, EventArgs e) { if (lV_licenseProduct.SelectedItems.Count > 0) { if (lV_licenseProduct.SelectedItems[0].Tag is Disc) { EditDisc editDisc = new EditDisc(lV_licenseProduct.SelectedItems[0].Tag as Disc); editDisc.ShowDialog(); } } }
private void NewDisc() { EditDisc editDialog = new EditDisc(); editDialog.ShowDialog(); }
private void editProductToolStripMenuItem_Click(object sender, EventArgs e) { if(lV_licenseProduct.SelectedItems.Count > 0) { if (lV_licenseProduct.SelectedItems[0].Tag is Disc) { EditDisc editDisc = new EditDisc(lV_licenseProduct.SelectedItems[0].Tag as Disc); editDisc.ShowDialog(); } } }
private void EditDisc() { if (lV_products.SelectedItems.Count > 0) { if(lV_products.SelectedItems[0].Tag is Disc) { EditDisc editDiscDialog = new EditDisc(lV_products.SelectedItems[0].Tag as Disc); editDiscDialog.ShowDialog(); } } }