Class DummyCompositionModelBehavior
- Namespace
- StockSharp.Diagram
- Assembly
- StockSharp.Diagram.Core.dll
Dummy implementation of ICompositionModelBehavior<TNode, TLink>.
public class DummyCompositionModelBehavior : ICompositionModelBehavior<DummyCompositionModelNode, DummyCompositionModelLink>, ICloneable
- Inheritance
-
DummyCompositionModelBehavior
- Implements
- Inherited Members
- Extension Methods
Constructors
DummyCompositionModelBehavior()
public DummyCompositionModelBehavior()
Properties
IsUndoManagerSuspended
Undo manager is suspended if this property is set to true.
public bool IsUndoManagerSuspended { get; set; }
Property Value
Links
Links.
public IEnumerable<DummyCompositionModelLink> Links { get; set; }
Property Value
Modifiable
Is it possible to edit a composite element diagram.
public bool Modifiable { get; set; }
Property Value
Nodes
Nodes.
public IEnumerable<DummyCompositionModelNode> Nodes { get; set; }
Property Value
Parent
Parent.
public ICompositionModel Parent { get; set; }
Property Value
UndoManager
public IUndoManager UndoManager { get; set; }
Property Value
Methods
AddLink(DummyCompositionModelLink)
Add link.
public void AddLink(DummyCompositionModelLink link)
Parameters
AddLink(DummyCompositionModelNode, string, DummyCompositionModelNode, string)
Add link.
public DummyCompositionModelLink AddLink(DummyCompositionModelNode from, string fromPort, DummyCompositionModelNode to, string toPort)
Parameters
from
DummyCompositionModelNodeFrom node.
fromPort
stringto
DummyCompositionModelNodeTo node.
toPort
string
Returns
AddNode(DummyCompositionModelNode)
Add node.
public void AddNode(DummyCompositionModelNode node)
Parameters
CommitTransaction(string)
Commit transaction.
public bool CommitTransaction(string name)
Parameters
name
stringOperation name.
Returns
- bool
Operation result.
FindNodeByKey(string)
Find node by key.
public DummyCompositionModelNode FindNodeByKey(string key)
Parameters
key
stringKey.
Returns
GetLinksForNode(DummyCompositionModelNode)
Get all links for the specified node.
public IEnumerable<DummyCompositionModelLink> GetLinksForNode(DummyCompositionModelNode node)
Parameters
Returns
- IEnumerable<DummyCompositionModelLink>
Links.
RaiseCommited(string, DummyCompositionModelNode, IUndoableEdit)
Raise commited event.
public void RaiseCommited(string name, DummyCompositionModelNode node, IUndoableEdit op)
Parameters
name
stringOpeation name.
node
DummyCompositionModelNodeop
IUndoableEdit
RaiseLinksRemoved(DummyCompositionModelNode)
Raise links removed event.
public void RaiseLinksRemoved(DummyCompositionModelNode node)
Parameters
RaiseSocketAdded(DummyCompositionModelNode)
Raise socket added event.
public void RaiseSocketAdded(DummyCompositionModelNode node)
Parameters
RemoveLink(DummyCompositionModelLink)
Remove link.
public void RemoveLink(DummyCompositionModelLink link)
Parameters
RemoveLink(DummyCompositionModelNode, string, DummyCompositionModelNode, string)
Remove link.
public void RemoveLink(DummyCompositionModelNode from, string fromPort, DummyCompositionModelNode to, string toPort)
Parameters
from
DummyCompositionModelNodeFrom node.
fromPort
stringto
DummyCompositionModelNodeTo node.
toPort
string
RemoveNode(DummyCompositionModelNode)
Remove node.
public void RemoveNode(DummyCompositionModelNode node)
Parameters
RollbackTransaction()
Rollback transaction.
public bool RollbackTransaction()
Returns
- bool
Operation result.
StartTransaction(string)
Start transaction.
public bool StartTransaction(string name)
Parameters
name
stringOperation name.
Returns
- bool
Operation result.
Events
BehaviorChanged
Changed event.
public event Action<(ModelChange change, object data, string propName, object oldValue, object oldParam, object newValue, object newParam)> BehaviorChanged