protected virtual void OnNameMessageReceived(NameMessageReceivedEventArgs e) { var handler = NameMessageReceived; if (handler != null) { handler(this, e); } }
private void client_NameMessageReceived(object sender, NameMessageReceivedEventArgs e) { serverName = e.ServerName; }