public RegionViewModel(Region region) { Rectangle = Automap.Map <RectangleElement>(region); Label = new TextElement(); Id = region.Id; Name = region.Name; Image = region.Thumbnail; UpdateLabel(); }
public Region(RectangleElement element) : this() { Automap.Map(element, this); }