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

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