Пример #1
0
 private void addEvents(simulatedPICNode newNode)
 {
     newNode.onLog += log;
     newNode.onSendPacket += sendPacket;
     newNode.onCryptoError += cryptoError;
     _nodes.Add(newNode.id, newNode);
 }
Пример #2
0
 public override virtualNodeBase createNode(int newId, string newName)
 {
     simulatedPICNode newNode = new simulatedPICNode(newId, newName, _eventHandler, Properties.Settings.Default.lavalampPICObject);
     addEvents(newNode);
     return newNode;
 }