if(KEY.TRAIN_SCHEDULES == key && scheduleIterator.getScheduleId() == index){
if ((KEY.TRAIN_SCHEDULES == key && scheduleIterator.getScheduleKey().index == index && scheduleIterator.getScheduleKey().principal.equals(p)) || (KEY.TRAINS == key && trainNumber == index && modelRoot.getPlayerPrincipal().equals(p))) {
    public void listUpdated(KEY key, int index, FreerailsPrincipal p) {        if(KEY.TRAIN_SCHEDULES == key &&	       	scheduleIterator.getScheduleId() == index){            listModel.fireRefresh();            enableButtons();        }    }