예제 #1
0
        }//end of display bookCIS

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

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

            FormController.activateDVD(this);
            FormController.deactivateBook(this);
            FormController.deactivateBookCIS(this);
            FormController.deactivateCDChamber(this);
            FormController.deactivateCDOrchestra(this);
            toolTip1.SetToolTip(btnCreateDVD, ttSaveDVD);
            txtProductUPC.Focus();
        }//end of display dvd
예제 #2
0
        }  // 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
예제 #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