private/addStudyToMenu.m
9e39a52b
 function addStudyToMenu(menu,label,callbackargs)
 uimenu(menu,...
     'Label',label,...
     'Callback',{@mcb_load_study,label,callbackargs});
 end
 
 function mcb_load_study(src,blah,filename,uimodel)
de857369
     %save current study
     studyID = get(uimodel.txtStudyID,'String');
     saveStudy(studyID,uimodel);
     %load selected study
9e39a52b
     load_study(filename,uimodel);
 end