protected void FireOnError(ErrorEventHandler e)
 {
     if (this.OnError != null)
     {
         OnError(this, e);
     }
 }
 private void Netmanager_OnError(object sender, ErrorEventHandler e)
 {
     MessageBox.Show(e.Text, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
 }
 private void NetCon_OnError(object sender, ErrorEventHandler e)
 {
     this.connections.Remove((NetworkConnection)sender);
     this.FireOnError(e);
 }