private void addSkillBTN_Click(object sender, EventArgs e) { // add skill to database service.InsertSkill(txtOther.Text); // add formatted added skill to job skills string skill = service.FormatSkill(txtOther.Text); selectedSkills.Add(skill); // add skill to listbox addedSkillsLBX.DataSource = selectedSkills; addedSkillsLBX.Refresh(); postedStatusLBL2.Text = addedSkillsLBX.Items.Count.ToString(); txtOther.Text = ""; }
private void editAddSkillBTN_Click(object sender, EventArgs e) { // add skill to database service.InsertSkill(newSkilltxtBox.Text); // add formatted added skill to job skills string skill = service.FormatSkill(newSkilltxtBox.Text); editSelectedSkills.Add(skill); // add skill to listbox jobSkillsLBX.DataSource = editSelectedSkills; jobSkillsLBX.Refresh(); //postedStatusLBL2.Text = jobSkillsLBX.Items.Count.ToString(); newSkilltxtBox.Text = ""; }