Exemple #1
0
        public void Init()
        {
            int a = 0;

            eState        = eTestState.initState;
            ewriststate   = eWristState.WristUnknown;
            log           = new CLog();
            log.EnableLog = true;

            Msg("******  APP_START ******");
            Msg("LogFilePath : " + log.GetLogFileNamePath());
            mserial = new ClassSerial();
            mserial.AssignCallBackFunction(ForClassSerialCallBack);

            mtask = new mAsyncTask();
            mtask.AssignCallBackFunction(ForTaskCallBack);
            mtask.StartTask();

            cmsmq = new CMsmqIPC();
            cmsmq.AssignCallBackFunction(ForCMsmqCallBack);
            cmsmq.SetRole(eRole.IamSerialPart);

            wlogin = new WindowsLoginLib();
            wlogin.AssignCallBackFunction(ForWindowsLoginCallBack);
            wlogin.Init();
        }
 void CreateCmsmqObject()
 {
     try
     {
         CMsmqIPC cmsmq2 = new CMsmqIPC();
         cmsmq2.AssignCallBackFunction(ForCMsmqCallBack);
         cmsmq2.SetRole(eRole.IamUI);
         lcmsmq.Add(cmsmq2);
         cmsmq = lcmsmq[0];
     }
     catch (Exception e)
     {
         string m = e.Message;
     }
 }