///<summary>Delete bytes from the buffer</summary> public void Delete(long pos1, long pos2) { lock (LockObj) { if (!modifyAllowed) { return; } if (!IsResizable) { return; } DeleteAction da = new DeleteAction(pos1, pos2, this); da.Do(); // if action isn't handled as chained (ActionChaining == false) // handle it manually if (!HandleChaining(da)) { AddUndoAction(da); RedoDequeDispose(); } EmitChanged(); } }
public override void Do() { del.Do(); ins.Do(); }