Ejemplo n.º 1
0
		protected override ElementBaseShape CreateElement()
		{
			var element = new ElementPolygonXZone();
			var propertiesViewModel = new ZonePropertiesViewModel(element, _zonesViewModel);
			if (!DialogService.ShowModalWindow(propertiesViewModel))
				return null;
			Helper.SetXZone(element);
			return element;
		}
Ejemplo n.º 2
0
		protected override Infrustructure.Plans.Elements.ElementBaseRectangle CreateElement()
		{
			var element = new ElementRectangleXZone();
			var propertiesViewModel = new ZonePropertiesViewModel(element, _zonesViewModel);
			if (!DialogService.ShowModalWindow(propertiesViewModel))
				return null;
			Helper.SetXZone(element);
			return element;
		}
Ejemplo n.º 3
0
		protected override ElementBaseShape CreateElement(RubezhAPI.PointCollection points)
		{
			var element = new ElementPolygonGKZone { Points = points };
			var propertiesViewModel = new ZonePropertiesViewModel(element, DesignerCanvas);
			return DialogService.ShowModalWindow(propertiesViewModel) ? element : null;
		}
Ejemplo n.º 4
0
		protected override ElementBaseRectangle CreateElement(double left, double top)
		{
			var element = new ElementRectangleGKZone() { Left = left, Top = top };
			var propertiesViewModel = new ZonePropertiesViewModel(element, DesignerCanvas);
			return DialogService.ShowModalWindow(propertiesViewModel) ? element : null;
		}