public EllipsePropertiesViewModel(ElementEllipse elementEllipse)
		{
			Title = "Свойства фигуры: Эллипс";
			_elementEllipse = elementEllipse;
			ImagePropertiesViewModel = new ImagePropertiesViewModel(_elementEllipse);
			CopyProperties();
		}
Пример #2
0
 public override ElementBase Clone()
 {
     ElementEllipse elementBase = new ElementEllipse()
     {
         BackgroundColor = BackgroundColor,
         BorderColor = BorderColor,
         BorderThickness = BorderThickness
     };
     if (BackgroundPixels != null)
         elementBase.BackgroundPixels = (byte[])BackgroundPixels.Clone();
     Copy(elementBase);
     return elementBase;
 }
Пример #3
0
		public override ElementBase Clone()
		{
			ElementEllipse elementBase = new ElementEllipse();
			Copy(elementBase);
			return elementBase;
		}
		void AddEllipse(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
		{
			try
			{
				var elementEllipse = new ElementEllipse()
				{
					Left = Parse(innerElement.rect[0].left),
					Top = Parse(innerElement.rect[0].top),
					Height = Parse(innerElement.rect[0].bottom) - Parse(innerElement.rect[0].top),
					Width = Parse(innerElement.rect[0].right) - Parse(innerElement.rect[0].left)
				};
				plan.ElementEllipses.Add(elementEllipse);
			}
			catch (Exception e)
			{
				Logger.Error(e, "ConfigurationConverter.AddEllipse");
			}
		}
 void AddEllipse(Plan plan, surfacesSurfaceLayerElementsElement innerElement)
 {
     var elementEllipse = new ElementEllipse()
     {
         Left = Parse(innerElement.rect[0].left),
         Top = Parse(innerElement.rect[0].top),
         Height = Parse(innerElement.rect[0].bottom) - Parse(innerElement.rect[0].top),
         Width = Parse(innerElement.rect[0].right) - Parse(innerElement.rect[0].left)
     };
     plan.ElementEllipses.Add(elementEllipse);
 }