Пример #1
0
 private void BaseWinPLC_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     try
     {
         g_WinCommPLC = null;
     }
     catch (Exception ex)
     {
         Log.L_I.WriteError(NameClass, ex);
     }
 }
Пример #2
0
 public static WinCommWritePLC GetWinInst(out bool blNew)
 {
     blNew = false;
     try
     {
         if (g_WinCommPLC == null)
         {
             blNew        = true;
             g_WinCommPLC = new WinCommWritePLC();
         }
         return(g_WinCommPLC);
     }
     catch (Exception ex)
     {
         Log.L_I.WriteError("WinCommWritePLC", ex);
         return(null);
     }
 }