private void bttnInsertSkill_Click(object sender, EventArgs e) { SkillManage skilllist = new SkillManage(); if (cbboxInsertSkills.Visible == false) { cbboxInsertSkills.Visible = true; cbboxInsertSkills.Items.Clear(); foreach (Skills skill in skilllist.GetAllSkill()) { cbboxInsertSkills.Items.Add(skill.SkillName); } } if (cbboxInsertSkills.Visible == true) { } }
private void bttnAddnewSkill_Click(object sender, EventArgs e) { SkillManage skilllist = new SkillManage(); skilllist.AddSkill(txtbAddNewSkill.Text); }
private void bttnDeleteSkill_Click(object sender, EventArgs e) { SkillManage skillist = new SkillManage(); Employee employ = Program.emp.getEmployee()[lboxEmployee.SelectedIndex]; Skills skill = skillist.GetSkillByEmployee(employ.ID)[lboxSkills.SelectedIndex]; skillist.DelSkill(skill.ID, employ.ID); refreshAll(); }