private void MnuAddResume_Click(object sender, EventArgs e) { using var frm = new FResume(); Program.Settings.PositionLoad(frm); frm.ScriptId = myScript.ScriptId; frm.Resume = null; if (frm.ShowDialog(this) == DialogResult.OK) { LoadScriptAnalyses(true); } Program.Settings.PositionSave(frm); }
private void MnuEditResume_Click(object sender, EventArgs e) { if (lstResume.SelectedItem != null && lstResume.SelectedItem is Resume resume) { using var frm = new FResume(); Program.Settings.PositionLoad(frm); frm.Resume = resume; if (frm.ShowDialog(this) == DialogResult.OK) { LoadScriptAnalyses(true); } Program.Settings.PositionSave(frm); } }