Exemple #1
0
 public void Inicialize()
 {
     this.Disconnect();
     if (DataAccessMethod == "PIAFSDK")
     {
         myAFSDK_App = new PIData_PIAFSDK();
     }
     if (DataAccessMethod == "PIWS")
     {
         myPIWS_App = new PIData_PIWS();
     }
     if (DataAccessMethod == "PIWA")
     {
         myPIWA_App = new PIData_PIWA();
     }
 }
Exemple #2
0
 private void Disconnect()
 {
     if (myAFSDK_App != null)
     {
         myAFSDK_App.Disconnect();
         myAFSDK_App = null;
     }
     if (myPIWS_App != null)
     {
         myPIWS_App.Disconnect();
         myPIWS_App = null;
     }
     if (myPIWA_App != null)
     {
         myPIWA_App.Disconnect();
         myPIWA_App = null;
     }
 }