private void btnUpdateCatalog_Click(object sender, EventArgs e) { CatalogScreen cs = new CatalogScreen(catalogId); cs.MdiParent = this.MdiParent; cs.Show(); this.Close(); }
private void btnAddItem_Click(object sender, EventArgs e) { tempItem.catalogId = this.catalogId; tempItem.productId = this.itemId; BusinessLogic.Product p = new BusinessLogic.Product(itemId); tempItem.productName = ProductMapper.getProductById(p).Name; if (editing == true) { } else if (editing == false) { CatalogItem.insertCatalogItem(tempItem); } CatalogScreen cs = new CatalogScreen(this.catalogId); cs.MdiParent = this.MdiParent; cs.Show(); this.Close(); }