/// <summary>
 /// Raises the connection state changed event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 public void OnConnectionStateChanged(IBleDevice sender, BleConnectionStateChangedEventArgs e)
 {
     ConnectionState = e.NewState;
     if (ConnectionStateChanged != null)
     {
         ConnectionStateChanged(sender, e);
     }
 }
 /// <summary>
 /// Raises the connection state changed event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 public void OnConnectionStateChanged(IBleDevice sender, BleConnectionStateChangedEventArgs e)
 {
     dev.OnConnectionStateChanged(sender, e);
 }