コード例 #1
0
ファイル: Camera.cs プロジェクト: JimHewitt/SpotCam.NET
 internal void HandleDisconnection(DisconnectionReason reason)
 {
     if (isConnected)
     {
         var args = new DisconnectionEventArgs(reason);
         if (DisconnectionReason.DeviceRemoved != reason && OnDisconnecting != null)
         {
             OnDisconnecting(this, args);
         }
         if (OnDisconnected != null)
         {
             OnDisconnected(this, args);
         }
         isConnected = false;
     }
 }
コード例 #2
0
ファイル: Camera.cs プロジェクト: nickcampau/SpotCam.NET
 internal void HandleDisconnection(DisconnectionReason reason)
 {
     if (isConnected)
     {
         var args = new DisconnectionEventArgs(reason);
         if (DisconnectionReason.DeviceRemoved != reason && OnDisconnecting != null)
             OnDisconnecting(this, args);
         if (OnDisconnected != null)
             OnDisconnected(this, args);
         isConnected = false;
     }
 }