//*****This section has the forms load and closing events // This sub is called when the form is loaded private void frmBookCDDVDShop_Load(System.Object sender, System.EventArgs e) { // Read serialized binary data file //SFManager.ReadFromFile(ref thisProductList, FileName); FormController.clear(this); ToolTip toolTip1 = new ToolTip(); // Set initial Tooltips toolTip1.SetToolTip(btnCreateBookCIS, ttCreateBookCIS); toolTip1.SetToolTip(btnCreateBook, ttCreateBook); toolTip1.SetToolTip(btnCreateCDChamber, ttCreateCDOrchestra); toolTip1.SetToolTip(btnCreateCDOrchestra, ttCreateDVD); toolTip1.SetToolTip(btnCreateDVD, ttCreateCDChamber); toolTip1.SetToolTip(btnClear, ttClear); toolTip1.SetToolTip(btnDelete, ttDelete); toolTip1.SetToolTip(btnEdit, ttEdit); toolTip1.SetToolTip(btnFind, ttFind); toolTip1.SetToolTip(btnExit, ttExit); toolTip1.SetToolTip(txtProductUPC, ttProductUPC); toolTip1.SetToolTip(txtProductPrice, ttProductPrice); toolTip1.SetToolTip(txtProductQuantity, ttProductQuantity); toolTip1.SetToolTip(txtProductTitle, ttProductTitle); toolTip1.SetToolTip(txtCDOrchestraConductor, ttCDOrchestraConductor); toolTip1.SetToolTip(txtBookISBNLeft, ttBookISBN); toolTip1.SetToolTip(txtBookAuthor, ttBookAuthor); toolTip1.SetToolTip(txtBookPages, ttBookPages); toolTip1.SetToolTip(txtDVDLeadActor, ttDVDLeadActor); toolTip1.SetToolTip(txtDVDReleaseDate, ttDVDReleaseDate); toolTip1.SetToolTip(txtDVDRunTime, ttDVDRunTime); toolTip1.SetToolTip(txtCDClassicalLabel, ttCDClassicalLabel); toolTip1.SetToolTip(txtCDClassicalArtists, ttCDClassicalArtists); toolTip1.SetToolTip(txtCDOrchestraConductor, ttCDOrchestraConductor); toolTip1.SetToolTip(txtCDChamberInstrumentList, ttCDChamberInstrumentList); toolTip1.SetToolTip(txtBookCISCISArea, ttBookCISCISArea); toolTip1.SetToolTip(btnCreateBookCIS, ttCreateBookCIS); } // end frmEBookCDDVDShop_Load
} // end frmEBookCDDVDShop_Load // Clear textboxes private void btnClear_Click(System.Object sender, System.EventArgs e) { FormController.clear(this); } // end btnClear_Click