Ejemplo n.º 1
0
        private void button7_Click(object sender, EventArgs e)
        {
            QualificationDialog dialog = new QualificationDialog();
            DialogResult        result = dialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                Resume resume = manager.GetResume();
                resume.GetCertificates().Add(dialog.GetQualification());
                manager.SetResume(resume);
                LoadResume();
            }
        }
Ejemplo n.º 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (listView2.SelectedItems.Count == 0)
            {
                return;
            }
            QualificationDialog dialog = new QualificationDialog();
            Resume resume        = manager.GetResume();
            int    selectedIndex = (int)listView2.SelectedItems[0].Tag;

            dialog.SetQualification(resume.GetCertificates()[selectedIndex]);
            DialogResult result = dialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                resume.GetCertificates()[selectedIndex] = dialog.GetQualification();
                manager.SetResume(resume);
                LoadResume();
            }
        }