private void AddElement(ICityElement element) { lock (this.elements) { this.elements.Add(element); } dynamic client = this.GetClient(); client.onElementAdded(element.ID, element.ElementType.ToString()); }
public void ChangeElementSize(Guid id, int size) { ICityElement element = null; lock (this.elements) { element = this.elements.Find(e => e.ID == id); } if (null != element) { element.ChangeSize(size); } }