Esempio n. 1
0
        private void AddElement(ICityElement element)
        {
            lock (this.elements) {
                this.elements.Add(element);
            }

            dynamic client = this.GetClient();

            client.onElementAdded(element.ID, element.ElementType.ToString());
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        private void AddElement(ICityElement element)
        {
            lock (this.elements) {
                this.elements.Add(element);
            }

            dynamic client = this.GetClient();
            client.onElementAdded(element.ID, element.ElementType.ToString());
        }