public override bool doTool() { //string selectedName; bool done = base.doTool(); if (!done) { return(false); } else { switch (type) { case HasDescriptionSoundEnum.NAME_PATH: descriptionSound.setNameSoundPath(resources.getAssetPath(AUDIO_STR)); controller.updatePanel(); return(true); case HasDescriptionSoundEnum.DESCRIPTION_PATH: descriptionSound.setDescriptionSoundPath(resources.getAssetPath(AUDIO_STR)); controller.updatePanel(); return(true); case HasDescriptionSoundEnum.DETAILED_DESCRIPTION_PATH: descriptionSound.setDetailedDescriptionSoundPath(resources.getAssetPath(AUDIO_STR)); controller.updatePanel(); return(true); default: return(false); } }// end else }
public override bool doTool() { switch (type) { case HasDescriptionSoundEnum.NAME_PATH: hds.setNameSoundPath(null); break; case HasDescriptionSoundEnum.DESCRIPTION_PATH: hds.setDescriptionSoundPath(null); break; case HasDescriptionSoundEnum.DETAILED_DESCRIPTION_PATH: hds.setDetailedDescriptionSoundPath(null); break; } Controller.getInstance().updatePanel(); return(true); }