public LfSpritePolygonViewModel(
     TreeViewViewModel treeParent,
     CompoundObjectViewModel parentVm,
     MainViewModel mainVm,
     LfSpritePolygon modelObject,
     bool enabled = true) :
     base(treeParent, parentVm, mainVm, enabled)
 {
     ModelObject = modelObject;
 }
Exemplo n.º 2
0
        public LfSpritePolygonViewModel(
            TreeViewViewModel treeParent,
            CompoundObjectViewModel parentVm,
            MainViewModel mainVm,
            LfSpritePolygon modelObject,
            bool enabled = true) :
            base(treeParent, parentVm, mainVm, enabled)
        {
            ModelObject = modelObject;

            //LfSpritePolygon modelSP = ModelObject as LfSpritePolygon;

            //foreach (LfDragablePoint dragPoint in modelSP.Points)
            //{
            //   LfDragablePointViewModel dragPointVm = new LfDragablePointViewModel(this, parentVm, MainVm, this, dragPoint, enabled);
            //   PointVms.Add(dragPointVm);
            //}
        }