public void SetOutputSelection(string name) { ExportAction action = Exec.OutputActionNamed(name); guiControls.menuOutput.SetSelection(action.name); // just calls back ItemSelected(menu,menuItem) after recovering the menuItem from the menu by name Exec.currentOutputAction = action; }