public DeleteDescriptionSoundTool(HasDescriptionSound hds, int type)
    {
        this.hds  = hds;
        this.type = (HasDescriptionSoundEnum)type;

        switch ((HasDescriptionSoundEnum)type)
        {
        case HasDescriptionSoundEnum.NAME_PATH:
            oldPath = hds.getNameSoundPath();
            break;

        case HasDescriptionSoundEnum.DESCRIPTION_PATH:
            oldPath = hds.getDescriptionSoundPath();
            break;

        case HasDescriptionSoundEnum.DETAILED_DESCRIPTION_PATH:
            oldPath = hds.getDetailedDescriptionSoundPath();
            break;
        }
    }
        protected static ResourcesUni createResources(HasDescriptionSound descriptionSound, int type)
        {
            ResourcesUni resources = new ResourcesUni();

            string selectedName;

            switch ((HasDescriptionSoundEnum)type)
            {
            case HasDescriptionSoundEnum.NAME_PATH:
                selectedName = descriptionSound.getNameSoundPath();
                if (selectedName != null)
                {
                    resources.addAsset(AUDIO_STR, selectedName);
                }
                return(resources);

            case HasDescriptionSoundEnum.DESCRIPTION_PATH:
                selectedName = descriptionSound.getDescriptionSoundPath();
                if (selectedName != null)
                {
                    resources.addAsset(AUDIO_STR, selectedName);
                }
                return(resources);

            case HasDescriptionSoundEnum.DETAILED_DESCRIPTION_PATH:
                selectedName = descriptionSound.getDetailedDescriptionSoundPath();
                if (selectedName != null)
                {
                    resources.addAsset(AUDIO_STR, selectedName);
                }
                return(resources);

            default:
                return(resources);
            }
        }
 public ChangeDescriptionSoundTool(HasDescriptionSound descrSound, int type) : base(createResources(descrSound, type), createAssetInfoArray(), 0, 0)
 {
     this.descriptionSound = descrSound;
     this.type             = (HasDescriptionSoundEnum)type;
 }