Example #1
0
		public MonitorSubPlanPresenterItem CreateMonitorPresenterItem(ElementPolygonSubPlan elementBase)
		{
			var presenterItem = new MonitorSubPlanPresenterItem(elementBase);
			Add(presenterItem);
			return presenterItem;
		}
Example #2
0
		protected override ElementBaseShape CreateElement(RubezhAPI.PointCollection points)
		{
			var element = new ElementPolygonSubPlan { Points = points };
			var propertiesViewModel = new SubPlanPropertiesViewModel(element, DesignerCanvas);
			return DialogService.ShowModalWindow(propertiesViewModel) ? element : null;
		}