void Button2Click(object sender, System.EventArgs e) { int myIndex = comboBox1.SelectedIndex; string selectedIndex = ""; string selectedName = ""; dbResult localResult = new dbResult(); selectedIndex = localIndex[myIndex]; selectedName = localName[myIndex]; localResult.queryDatabase("WHERE ((MyNumber='" + selectedIndex + "')", ")", localResult, conn2); localResult.ClearIndex(); localResult.ClearName(); for (int i = 0; i < localIndex.Count; i++) { localResult.SetIndex(localIndex[i]); localResult.SetName(localName[i]); } //delete the entry we're going to edit localResult.deleteFromDatabase(localIndex[myIndex], conn2); //set up the extraction form and show ExtractionForm editForm = new ExtractionForm(myDBPath, localResult); editForm.Show(); }
void Button1Click(object sender, EventArgs e) { //create new database object dbResult resumeFilter = new dbResult(); //send object to filter to fill in values filterResume(resumeFilter); //show add person form ExtractionForm extractForm = new ExtractionForm(localDataBasePath, resumeFilter); extractForm.Show(); }