Esempio n. 1
0
 public SharedRendererOutputSlotViewModel(GraphicsCompositorBlockViewModel block, string name, SharedRendererReferenceKey slotKey)
     : base(block, name)
 {
     this.slotKey = slotKey;
     Accessor     = slotKey.Path.GetAccessor();
     if (Accessor.Index != NodeIndex.Empty)
     {
         ((IObjectNode)Accessor.Node).ItemChanged += ItemChanged;
     }
     else
     {
         ((IMemberNode)Accessor.Node).ValueChanged += ValueChanged;
     }
 }
 protected GraphicsCompositorSlotViewModel(GraphicsCompositorBlockViewModel block, string name)
     : base(block.SafeArgument(nameof(block)).ServiceProvider)
 {
     Block = block;
     Name  = name;
 }