Пример #1
0
        public static void Init(TPara _tPara)
        {
            ERR = new CErrMan();
            ERR.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     _tPara.Err.eErr,
                     _tPara.Err.bUseErrPic);

            DIO = new CDioMan();
            DIO.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     _tPara.Dio.eDioSel,
                     _tPara.Dio.eX,
                     _tPara.Dio.eY);

            AIO = new CAioMan();
            AIO.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     _tPara.Aio.eAioSel,
                     _tPara.Aio.eX,
                     _tPara.Aio.eY,
                     _tPara.Aio.iRangeAMin,
                     _tPara.Aio.iRangeAMax);

            CYL = new CCylinderMan();
            CYL.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     _tPara.Cyl.eCyl,
                     DIO);

            MTR = new CMotrMan();
            MTR.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     _tPara.Mtr.eMtrSel,
                     _tPara.Mtr.eMtr,
                     DIO);

            TWL = new CTowerLampMan();
            TWL.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     DIO);

            FrmLogOn   = new FormLogOn();
            FrmDllMain = new FormDllMain(_tPara.iWidth, _tPara.iHeight, _tPara.eLanSel, _tPara.bTabHides);

            Log.StartLogMan();
        }
Пример #2
0
        public static void Init(TPara _tPara)
        {
            ER = new CErrMan();
            ER.Init(_tPara.eLanSel,
                    _tPara.sParaFolderPath,
                    _tPara.iCntErr,
                    _tPara.bUseErrPic);

            IO = new CDioMan();
            IO.Init(_tPara.eLanSel,
                    _tPara.sParaFolderPath,
                    _tPara.iCntDIn,
                    _tPara.iCntDOut,
                    _tPara.eDio);

            AIO = new CAioMan();
            AIO.Init(_tPara.eLanSel,
                     _tPara.sParaFolderPath,
                     _tPara.iCntAIn,
                     _tPara.iCntAOut,
                     _tPara.iRangeAMin,
                     _tPara.iRangeAMax,
                     _tPara.eAio);

            CL = new CCylinderMan();
            CL.Init(_tPara.eLanSel,
                    _tPara.sParaFolderPath,
                    _tPara.iCntCylinder,
                    IO);

            MT = new CMotrMan();
            MT.Init(_tPara.eLanSel,
                    _tPara.sParaFolderPath,
                    _tPara.iCntMotr,
                    _tPara.eMotors,
                    IO);

            TL = new CTowerLampMan();
            TL.Init(_tPara.sParaFolderPath,
                    IO);

            FrmLogOn   = new FormLogOn();
            FrmDllMain = new FormDllMain(_tPara.iWidth, _tPara.iHeight, _tPara.bTabHides);

            Log.StartLogMan();
        }