public virtual void OnAcceptConnectSuccess(ConnectSuccessEventArgs e) { if (AcceptConnectSuccess != null) { AcceptConnectSuccess(this, e); } }
private void AcceptConnectSuccess(object sender, ConnectSuccessEventArgs e) { Action <string> DelegateTeste_ModifyText = THREAD_MOD; this.messagebox.Invoke(DelegateTeste_ModifyText, e.IP.ToString() + " has connected"); ClientManager clm = e.clientManager; clm.Authorize(); }