Exemplo n.º 1
0
        private void RunProcess()
        {
            while (!mRunning)
            {
                if (mOraDb.ConnectStatus())
                {
                    mRunning = true;
                    Thread.Sleep(1000);
                    InitialObject();
                    mCRProcess = new cCRProcess[mCRBay.Length];
                    for (int i = 0; i < mCRBay.Length; i++)
                    {
                        mCRProcess[i] = new cCRProcess(this);
                    }

                    for (int i = 0; i < mCRBay.Length; i++)
                    {
                        mCRProcess[i].InitialProcess(mCRBay[i].ComportID);
                    }
                   
                    //mThread.Abort();
                }
                //mThread.Abort();
                Thread.Sleep(1000);
            }
            
        }
Exemplo n.º 2
0
 public cPorts(frmCRBay f, cCRProcess pCRProcess)
 {
     //fMain = new frmMain();
     mFMercury  = f;
     mLog       = new clogfile();
     mCRPRocess = pCRProcess;
     //Addlistbox("Initial ports...");
     //StartThread();
 }