/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    void SaveBlock(Data.Chapter.Block block)
    {
        block.Frames = CurrentBlockTime*Globals.FRAMESPERSECOND;

        if(Mode==Modes.TimeMode){
            block.BlockType = Data.Chapter.Block.blockTypes.Time;
        }else if(Mode==Modes.VoiceMode){
            block.BlockType = Data.Chapter.Block.blockTypes.Voice;
        }
        block.Save();
        mPreviousBlock=null;

        if(mPreviousButton!=null){
            mPreviousButton.SetTextBottom();
        }else{
            RightButtonBar.currentSelected.SetTextBottom();
        }

        mLastBlockTime = CurrentBlockTime;
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //If time has changed and block isn't saved yet then show warning message
    public override void SaveWarning(Data.Chapter.Block previousBlock, BasicButton previousButton)
    {
        if(TVR.Utils.Message.State==TVR.Utils.Message.States.Running)
            return;

        TVR.Utils.Message.Show(1, "AVISO", "No ha guardado los cambios. \u00BFDesea guardar?", TVR.Utils.Message.Type.YesNo, "S\u00ED", "No", Message_Save);
        mPreviousBlock = previousBlock;
        mPreviousButton = previousButton;
        blur = true;
    }