コード例 #1
0
ファイル: ElementPolyline.cs プロジェクト: hjlfmy/Rubezh
 public override ElementBase Clone()
 {
     ElementPolyline elementLine = new ElementPolyline()
     {
         BackgroundColor = BackgroundColor,
         BorderThickness = BorderThickness,
         Points = Points.Clone()
     };
     Copy(elementLine);
     return elementLine;
 }
コード例 #2
0
		public PolylinePropertiesViewModel(ElementPolyline elementPolyline)
		{
			Title = "Свойства фигуры: Линия";
			_elementPolyline = elementPolyline;
			CopyProperties();
		}
コード例 #3
0
		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");
			}
		}
コード例 #4
0
ファイル: ElementPolyline.cs プロジェクト: saeednazari/Rubezh
		public override ElementBase Clone()
		{
			ElementPolyline elementLine = new ElementPolyline();
			Copy(elementLine);
			return elementLine;
		}
コード例 #5
0
 void AddPolyLine(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
 {
     var elementPolyline = new ElementPolyline();
     elementPolyline.Points = GetPointCollection(innerElement);
     //elementPolyline.Normalize();
     plan.ElementPolylines.Add(elementPolyline);
 }