public MonitorSubPlanPresenterItem CreateMonitorPresenterItem(ElementPolygonSubPlan elementBase) { var presenterItem = new MonitorSubPlanPresenterItem(elementBase); Add(presenterItem); return presenterItem; }
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; }