Beispiel #1
0
        }//end of display dvd

        void DisplayCDOrchestra()
        {
            btnCreateCDOrchestra.Enabled = true;
            btnCreateCDOrchestra.Text    = "Save CD Orchestra";
            FormController.formAddMode(this);
            txtProductUPC.Enabled              = true;
            txtProductPrice.Enabled            = true;
            txtProductTitle.Enabled            = true;
            txtProductQuantity.Enabled         = true;
            txtDVDLeadActor.Enabled            = false;
            txtDVDReleaseDate.Enabled          = false;
            txtDVDRunTime.Enabled              = false;
            txtBookISBNLeft.Enabled            = false;
            txtBookISBNRight.Enabled           = false;
            txtBookAuthor.Enabled              = false;
            txtBookPages.Enabled               = false;
            txtBookCISCISArea.Enabled          = false;
            txtCDClassicalLabel.Enabled        = true;
            txtCDClassicalArtists.Enabled      = true;
            txtCDOrchestraConductor.Enabled    = true;
            txtCDChamberInstrumentList.Enabled = false;

            btnCreateBook.Enabled      = false;
            btnCreateBookCIS.Enabled   = false;
            btnCreateDVD.Enabled       = false;
            btnCreateCDChamber.Enabled = false;

            FormController.activateCDOrchestra(this);
            FormController.deactivateBook(this);
            FormController.deactivateBookCIS(this);
            FormController.deactivateCDChamber(this);
            FormController.deactivateDVD(this);
            toolTip1.SetToolTip(btnCreateCDOrchestra, ttSaveCDOrchestra);
            txtProductUPC.Focus();
        }//end display CD Orchestra
        }  // end deactivateAllButCDChamber

        // Deactivate all but CDChamber
        public static void deactivateAllButCDChamber(frmBookCDDVDShop f)
        {
            FormController.deactivateBook(f);
            FormController.deactivateBookCIS(f);
            FormController.deactivateCDOrchestra(f);
            FormController.deactivateDVD(f);
            FormController.deactivateAddButtons(f);
        }  // end deactivateAllButCDOrchestra
Beispiel #3
0
        void DisplayCDChamberForm()
        {
            // Display form for Create/Insert or Find/SELECT or Edit/Update or Delete a Chamber Music CD
            btnCreateCDChamber.Enabled = true;
            btnCreateCDChamber.Text    = "Save CD Chamber";
            FormController.formAddMode(this);
            txtProductUPC.Enabled              = true;
            txtProductPrice.Enabled            = true;
            txtProductTitle.Enabled            = true;
            txtProductQuantity.Enabled         = true;
            txtDVDLeadActor.Enabled            = false;
            txtDVDReleaseDate.Enabled          = false;
            txtDVDRunTime.Enabled              = false;
            txtBookISBNLeft.Enabled            = false;
            txtBookISBNRight.Enabled           = false;
            txtBookAuthor.Enabled              = false;
            txtBookPages.Enabled               = false;
            txtBookCISCISArea.Enabled          = false;
            txtCDClassicalLabel.Enabled        = true;
            txtCDClassicalArtists.Enabled      = true;
            txtCDOrchestraConductor.Enabled    = false;
            txtCDChamberInstrumentList.Enabled = true;

            btnCreateBookCIS.Enabled     = false;
            btnCreateBook.Enabled        = false;
            btnCreateDVD.Enabled         = false;
            btnCreateCDOrchestra.Enabled = false;

            FormController.activateCDChamber(this);
            FormController.deactivateCDOrchestra(this);
            FormController.deactivateDVD(this);
            FormController.deactivateBook(this);
            FormController.deactivateBookCIS(this);
            toolTip1.SetToolTip(btnCreateCDChamber, ttSaveCDChamber);
            txtProductUPC.Focus();
        } // end DisplayCDChamberForm