コード例 #1
0
ファイル: PresenterCanvas.cs プロジェクト: xbadcode/Rubezh
		public MonitorSubPlanPresenterItem CreateMonitorPresenterItem(ElementPolygonSubPlan elementBase)
		{
			var presenterItem = new MonitorSubPlanPresenterItem(elementBase);
			Add(presenterItem);
			return presenterItem;
		}
コード例 #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;
		}