コード例 #1
0
        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)
            {

            }
        }
コード例 #2
0
 private void bttnAddnewSkill_Click(object sender, EventArgs e)
 {
     SkillManage skilllist = new SkillManage();
     skilllist.AddSkill(txtbAddNewSkill.Text);
 }
コード例 #3
0
        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();
        }