protected override Infrustructure.Plans.Elements.ElementBaseRectangle CreateElement() { var element = new ElementRectangleZone(); var propertiesViewModel = new ZonePropertiesViewModel(element); DialogService.ShowModalWindow(propertiesViewModel); Helper.SetZone(element); return element; }
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; }