コード例 #1
0
 public void DisconnectLevel2Data()
 {
     try
     {
         if (eqLastTrdClient.IsConnected())
         {
             eqLastTrdClient.Disconnect();
         }
         if (eqDobkClient.IsConnected())
         {
             eqDobkClient.Disconnect();
         }
         if (optLastTrdClient.IsConnected())
         {
             optLastTrdClient.Disconnect();
         }
         if (optDobkClient.IsConnected())
         {
             optDobkClient.Disconnect();
         }
         if (sprdDobkClient.IsConnected())
         {
             sprdDobkClient.Disconnect();
         }
         if (sprdLastTrdClient.IsConnected())
         {
             sprdLastTrdClient.Disconnect();
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }