public AuditoryModel Clone() { AuditoryModel tmp = new AuditoryModel(); tmp._rule = this._rule; tmp._base = this._base; tmp._step = this._step; tmp._minFq = this._minFq; tmp._maxFq = this._maxFq; tmp._lBeat = this._lBeat; tmp._lStim = this._lStim; tmp._lIntStim = this._lIntStim; tmp._lIntSignal = this._lIntSignal; tmp._nBufferSize = this._nBufferSize; tmp._attenuationSequencer = this._attenuationSequencer; tmp._attenuationRandom = this._attenuationRandom; return(tmp); }
public void Copy(AuditoryModel tmp) { if (tmp == null) { return; } this._base = tmp._base; this._step = tmp._step; this._rule = tmp._rule; this._minFq = tmp._minFq; this._maxFq = tmp._maxFq; this._lBeat = tmp._lBeat; this._lStim = tmp._lStim; this._lIntStim = tmp._lIntStim; this._lIntSignal = tmp._lIntSignal; this._nBufferSize = tmp._nBufferSize; this._attenuationSequencer = tmp._attenuationSequencer; this._attenuationRandom = tmp._attenuationRandom; }
override public void EndEdit() { _tmpModel = null; }
override public void CancelEdit() { this.Copy(_tmpModel); _tmpModel = null; }
override public void BeginEdit() { _tmpModel = this.Clone(); }