/// <summary> /// Connect to this box, function will be called when SendToLocal is called via /// FFMessageBoard or by other clients through a FFMessageBoard. Cannot Connect /// the same function more than once. /// </summary> public bool Connect(EventListener function) { if (!messageList.Contains(function)) // Cannot connect to a single function more than once { if (messageBoard != null) { messageBoard.IncrementListenerCount(); } ++listenerCountLocal; messageList.Add(function); return(true); } return(false); }