public override int Close() { #if (NoCom) mvarIsOpen = false; ErrorCode = 0; #else lock (mvarActEasyIF) { mvarIsOpen = (ErrorCode = mvarActEasyIF.Close()) == 0 ? false : true; } #endif return(ErrorCode); }
private void Form1_Load(object sender, EventArgs e) { timer1.Stop(); plc.Close(); }