public RegionViewModel(Region region)
        {
            Rectangle = Automap.Map <RectangleElement>(region);
            Label     = new TextElement();
            Id        = region.Id;
            Name      = region.Name;
            Image     = region.Thumbnail;

            UpdateLabel();
        }
Example #2
0
 public Region(RectangleElement element) : this()
 {
     Automap.Map(element, this);
 }