Ejemplo n.º 1
0
 public PolygonPropertiesViewModel(ElementPolygon elementPolygon)
 {
     Title = "Свойства фигуры: Полигон";
     ImagePropertiesViewModel = new ImagePropertiesViewModel();
     _elementPolygon = elementPolygon;
     CopyProperties();
 }
Ejemplo n.º 2
0
		public override ElementBase Clone()
		{
			ElementPolygon elementBase = new ElementPolygon();
			Copy(elementBase);
			return elementBase;
		}
		void AddPolygon(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
		{
			try
			{
				var elementPolygon = new ElementPolygon();
				elementPolygon.Points = GetPointCollection(innerElement);
				//elementPolygon.Normalize();
				plan.ElementPolygons.Add(elementPolygon);
			}
			catch (Exception e)
			{
				Logger.Error(e, "ConfigurationConverter.AddPolygon");
			}
		}
 void AddPolygon(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
 {
     var elementPolygon = new ElementPolygon();
     elementPolygon.Points = GetPointCollection(innerElement);
     //elementPolygon.Normalize();
     plan.ElementPolygons.Add(elementPolygon);
 }