private void OnProtocolOpen(object sender, EventArgs e) { this.State = ProtocolSessionState.Opened; if (this.OnOpen != null) { this.OnOpen(this, null); } }