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