public OutputConnectorViewModel(ElementViewModel element, string name, Color color, Func <BitmapSource> valueCallback)
     : base(element, name, color)
 {
     _connections   = new BindableCollection <ConnectionViewModel>();
     _valueCallback = valueCallback;
 }
 protected ConnectorViewModel(ElementViewModel element, string name, Color color)
 {
     _element = element;
     _name = name;
     _color = color;
 }
 public InputConnectorViewModel(ElementViewModel element, string name, Color color)
     : base(element, name, color)
 {
 }
Exemple #4
0
 public InputConnectorViewModel(ElementViewModel element, string name, Color color)
     : base(element, name, color)
 {
 }
 public OutputConnectorViewModel(ElementViewModel element, string name, Color color, Func<BitmapSource> valueCallback)
     : base(element, name, color)
 {
     _connections = new BindableCollection<ConnectionViewModel>();
     _valueCallback = valueCallback;
 }
Exemple #6
0
 public void DeleteElement(ElementViewModel element)
 {
     Connections.RemoveRange(element.AttachedConnections);
     Elements.Remove(element);
 }
Exemple #7
0
 protected ConnectorViewModel(ElementViewModel element, string name, Color color)
 {
     _element = element;
     _name    = name;
     _color   = color;
 }