Exemple #1
0
 public ObjectFactoryPropertiesViewModel(
     TreeViewViewModel treeParent,
     CompoundObjectViewModel parentVm,
     MainViewModel mainVm,
     ObjectFactoryProperties modelObject) :
     base(treeParent, parentVm, mainVm)
 {
     _modelObject = modelObject;
 }
Exemple #2
0
        public ObjectFactoryPropertiesViewModel(
            TreeViewViewModel treeParent,
            CompoundObjectViewModel parentVm,
            MainViewModel mainVm,
            ObjectFactoryProperties modelObject,
            CoSystemViewModel systemViewModel) :
            base(treeParent, parentVm, mainVm, systemViewModel)
        {
            _modelObject = modelObject;

            if (_modelObject != null)
            {
                _bodyObject = ParentVm.FindBodyObject(_modelObject.Body);
            }

            foreach (SpawnObject so in LocalModelObject.SpawnObjects)
            {
                SpawnObjectViewModel sovm = new SpawnObjectViewModel(this, parentVm, mainVm, this, so);
                SpawnObjects.Add(sovm);
            }

            UpdateCornerPoints();
        }