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