Ejemplo n.º 1
0
        private void buttonSkills_Click(object sender, EventArgs e)
        {
            string enteredSkill     = (string)textBoxSkills.Text;
            string skillDescription = HNDatabase.GetSkillDescription(enteredSkill);

            labelSkills.Text = skillDescription;
        }
Ejemplo n.º 2
0
        private void listBoxSkills_DoubleClick(object sender, EventArgs e)
        {
            string selectedSkill = (string)listBoxSkills.SelectedItem;

            string skillDescription = HNDatabase.GetSkillDescription(selectedSkill);

            labelSkills.Text = skillDescription;
        }
Ejemplo n.º 3
0
 // 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;
     }
 }