Exemple #1
0
        private void AddToolsetSelectedEntityToMap(MapPoint mapPoint)
        {
            var selectedEntityType = this._toolset.SelectedType;
            var newEntity          = this._entityFactory.Create(
                selectedEntityType,
                mapPoint.X,
                mapPoint.Y);

            if (newEntity.Has(EntityProperty.PointIsBusy) == false)
            {
                return;
            }

            mapPoint.AddEntity(newEntity);
            this._toolset.RemoveSelected();
        }