//importGodMothers_Click //handles the importGodMothers buttun and calls the function to import the godmothers into the db //Input: UI interaction from the user //Output: the readGodmother method of appointmentlistio is called //precondition: the db is connectable and querable. the user wished to import the godmother information into the db //postcondition: the excel file has been read into the DB public void importGodMothers_Click(object sender, EventArgs e) { BusinessLogic.ApointmentListIO gettingGodmothers = new BusinessLogic.ApointmentListIO(); gettingGodmothers.readGodmothers(); }
//importCinderella_Click //handles the importcinderella buttun and calls the function to import the cinderella excel file into the db //Input: UI interaction from the user //Output: the readcinderella method of appointmentlistio is called //precondition: the db is connectable and querable. the user wished to import the cinderella information into the db //postcondition: the excel file has been read into the DB public void importCinderella_Click(object sender, EventArgs e) { // ProgressBar cinderellaProgess = new ProgressBar(); cinderellaProgess.Location = new System.Drawing.Point(328, 184); cinderellaProgess.Name = "cinderellaImportStatus"; cinderellaProgess.Width = 163; cinderellaProgess.Height = 25; cinderellaProgess.Minimum = 0; cinderellaProgess.Maximum = 100; cinderellaProgess.Value = 0; cinderellaProgess.Style = ProgressBarStyle.Continuous; cinderellaProgess.ForeColor = Color.YellowGreen; // cinderellaProgess.SetBounds(328, 126, 163, 30); cinderellaProgess.Show(); cinderellaProgess.Visible = true; cinderellaProgess.BringToFront(); BusinessLogic.ApointmentListIO gettingCinderellas = new BusinessLogic.ApointmentListIO(); gettingCinderellas.readCinderellas(); }