public void EditProjects() { using (frmProjects frm = new frmProjects()) { frm.ProjectList = (ProjectMRU.Items as List <string>); if (frm.ShowDialog() == DialogResult.OK) { // Reload MRU list from form's grid. ProjectMRU.Clear(); ProjectMRU.AddRange(frm.ProjectList); ValidateProjectMRU(); ProjectMRU.Save(); // Now update the tray menu items. UpdateProjectMenuItemsFromMRU(); } } }
public void EditProjects() { using (frmProjects frm = new frmProjects()) { frm.ProjectList = (ProjectMRU.Items as List<string>); if (frm.ShowDialog() == DialogResult.OK) { // Reload MRU list from form's grid. ProjectMRU.Clear(); ProjectMRU.AddRange(frm.ProjectList); ValidateProjectMRU(); ProjectMRU.Save(); // Now update the tray menu items. UpdateProjectMenuItemsFromMRU(); } } }