Exemple #1
0
 public override ElementBase Clone()
 {
     ElementPolyline elementLine = new ElementPolyline()
     {
         BackgroundColor = BackgroundColor,
         BorderThickness = BorderThickness,
         Points = Points.Clone()
     };
     Copy(elementLine);
     return elementLine;
 }
		public PolylinePropertiesViewModel(ElementPolyline elementPolyline)
		{
			Title = "Свойства фигуры: Линия";
			_elementPolyline = elementPolyline;
			CopyProperties();
		}
		void AddPolyLine(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
		{
			try
			{
				var elementPolyline = new ElementPolyline();
				elementPolyline.Points = GetPointCollection(innerElement);
				//elementPolyline.Normalize();
				plan.ElementPolylines.Add(elementPolyline);
			}
			catch (Exception e)
			{
				Logger.Error(e, "ConfigurationConverter.AddPolyLine");
			}
		}
		public override ElementBase Clone()
		{
			ElementPolyline elementLine = new ElementPolyline();
			Copy(elementLine);
			return elementLine;
		}
 void AddPolyLine(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
 {
     var elementPolyline = new ElementPolyline();
     elementPolyline.Points = GetPointCollection(innerElement);
     //elementPolyline.Normalize();
     plan.ElementPolylines.Add(elementPolyline);
 }