private void ToolStripItem_ClickView(object sender, EventArgs e) { Product product = ((sender as ToolStripItem).Owner as ContextMenuStrip).Tag as Product; FormProductSave productSave = new FormProductSave(this, product); productSave.ShowDialog(); }
private void ButtonAdd_Click(object sender, EventArgs e) { FormProductSave productSave = new FormProductSave(this, null); productSave.ShowDialog(); }