public ProductEditForm(Product product, User user, ProductsForm productForm)
 {
     InitializeComponent();
     this.product     = product;
     this.user        = user;
     this.productForm = productForm;
 }
示例#2
0
        private void productListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var childForm = new ProductsForm(user);

            childForm.MdiParent = this;
            childForm.Text      = "Products";
            childForm.Show();
        }