public void RemoveShape(IServerVdShape sh) { if (sh.GetCursor() != null) { throw new InvalidOperationException("cannot remove shape locked by cursor!"); } _shapeIdToShape.Remove(sh.Id()); }
public void AddShapeAndLock(IServerVdShape sh) { _shapeIdToShape.Add(sh.Id(), sh); LockShape(sh, sh.InitialOwner()); }
public void AddShape(IServerVdShape sh) { _shapeIdToShape.Add(sh.Id(), sh); }
public void RemoveShape(IServerVdShape sh) { if (sh.GetCursor() != null) throw new InvalidOperationException("cannot remove shape locked by cursor!"); _shapeIdToShape.Remove(sh.Id()); }