示例#1
0
 protected override Infrustructure.Plans.Elements.ElementBaseRectangle CreateElement()
 {
     var element = new ElementRectangleZone();
     var propertiesViewModel = new ZonePropertiesViewModel(element);
     DialogService.ShowModalWindow(propertiesViewModel);
     Helper.SetZone(element);
     return element;
 }
示例#2
0
 protected override ElementBaseShape CreateElement()
 {
     var element = new ElementPolygonZone();
     var propertiesViewModel = new ZonePropertiesViewModel(element);
     DialogService.ShowModalWindow(propertiesViewModel);
     Helper.SetZone(element);
     return element;
 }
		protected override ElementBaseRectangle CreateElement()
		{
			var element = new ElementRectangleZone();
			var propertiesViewModel = new ZonePropertiesViewModel(element, _zonesViewModel);
			if (!DialogService.ShowModalWindow(propertiesViewModel))
				return null;
			Helper.SetZone(element);
			return element;
		}