private void BaseWinPLC_Closing(object sender, System.ComponentModel.CancelEventArgs e) { try { g_WinCommPLC = null; } catch (Exception ex) { Log.L_I.WriteError(NameClass, ex); } }
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); } }