protected override ElementBaseRectangle CreateElement(double left, double top) { var element = new ElementRectangleGKMPT() { Left = left, Top = top }; var propertiesViewModel = new MPTPropertiesViewModel(element, DesignerCanvas); return DialogService.ShowModalWindow(propertiesViewModel) ? element : null; }
protected override ElementBaseShape CreateElement(RubezhAPI.PointCollection points) { var element = new ElementPolygonGKMPT() { Points = points }; var propertiesViewModel = new MPTPropertiesViewModel(element, DesignerCanvas); return DialogService.ShowModalWindow(propertiesViewModel) ? element : null; }