private void button10_Click(object sender, EventArgs e) { CareerDialog dialog = new CareerDialog(); DialogResult result = dialog.ShowDialog(); if (result == DialogResult.OK) { Resume resume = manager.GetResume(); resume.GetCareers().Add(dialog.GetCareer()); manager.SetResume(resume); LoadResume(); } }
private void button8_Click(object sender, EventArgs e) { if (listView3.SelectedItems.Count == 0) { return; } CareerDialog dialog = new CareerDialog(); Resume resume = manager.GetResume(); int selectedIndex = (int)listView3.SelectedItems[0].Tag; dialog.SetCareer(resume.GetCareers()[selectedIndex]); DialogResult result = dialog.ShowDialog(); if (result == DialogResult.OK) { resume.GetCareers()[selectedIndex] = dialog.GetCareer(); manager.SetResume(resume); LoadResume(); } }