Ejemplo n.º 1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            CatalogPortalScreen cps = new CatalogPortalScreen();

            cps.MdiParent = this.MdiParent;
            cps.Show();
            this.Close();
        }
        private void btnDeleteCatalog_Click(object sender, EventArgs e)
        {
            Catalog.deleteCatalog(catalogId);
            MessageBox.Show("Catalog Deleted");

            CatalogPortalScreen cps = new CatalogPortalScreen();

            cps.MdiParent = this.MdiParent;
            cps.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        private void btnFinish_Click(object sender, EventArgs e)
        {
            SetCatalog();

            //call correct method based on whether adding or updating
            if (editing == true)
            {
                //update exisitng catalog
                Catalog.updateCatalog(tempCatalog);
            }
            else
            {
                //insert new Catalog
                Catalog.insertCatalog(tempCatalog);
            }
            //return to portal page
            CatalogPortalScreen cps = new CatalogPortalScreen();

            cps.MdiParent = this.MdiParent;
            cps.Show();
            this.Close();
        }