private void buttonSkills_Click(object sender, EventArgs e) { string enteredSkill = (string)textBoxSkills.Text; string skillDescription = HNDatabase.GetSkillDescription(enteredSkill); labelSkills.Text = skillDescription; }
private void listBoxSkills_DoubleClick(object sender, EventArgs e) { string selectedSkill = (string)listBoxSkills.SelectedItem; string skillDescription = HNDatabase.GetSkillDescription(selectedSkill); labelSkills.Text = skillDescription; }
// Handle the Enter Key Press in the Materials TextBox private void textBoxSkills_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { string enteredSkill = (string)textBoxSkills.Text; enteredSkill = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(enteredSkill); string skillDescription = HNDatabase.GetSkillDescription(enteredSkill); labelSkills.Text = skillDescription; } }