Example #1
0
        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();
        }
Example #2
0
        private void ButtonAdd_Click(object sender, EventArgs e)
        {
            FormProductSave productSave = new FormProductSave(this, null);

            productSave.ShowDialog();
        }