Пример #1
0
 public void DeleteElement(ElementViewModel element)
 {
     Connections.RemoveRange(element.AttachedConnections);
     Elements.Remove(element);
 }
Пример #2
0
 public InputConnectorViewModel(ElementViewModel element, string name, Color color)
     : base(element, name, color)
 {
 }
Пример #3
0
 public OutputConnectorViewModel(ElementViewModel element, string name, Color color, Func <BitmapSource> valueCallback)
     : base(element, name, color)
 {
     _connections   = new BindableCollection <ConnectionViewModel>();
     _valueCallback = valueCallback;
 }