public AddProduct(ManageProductOrders O) { InitializeComponent(); product = new Product(); product.newProduct(); CE = new CheckEntry(); M = new WorkFlowMessage(); Orders = O; }
private void btn_ManageProductOrders_Click(object sender, EventArgs e) { ManageProductOrders ProductOrders = new ManageProductOrders(Home); if (objCurrentUser.canView(ProductOrders)) { Home.MdiChildren.Last <Form>().Close(); ProductOrders.MdiParent = Home; ProductOrders.Show(); } else { ProductOrders.Dispose(); MessageBox.Show("You do not have access for the ManageProductOrders.\nContact your local Product Manager."); } }