Ejemplo n.º 1
0
        //********************************************************************************************************************

        //线程和窗口进程之间的交互平台(线程与进程安全空间)
        public void worker_Report(Object dataObj)
        {
            //获取线程Report来的数据
            Dictionary <String, Object> argument = dataObj as Dictionary <String, Object>;
            //ILightThreadable me = argument["caller"] as ILightThreadable;//调用者指针
            BackgroundWorker currWorker  = argument["worker"] as BackgroundWorker;
            LightThread      lightThread = argument["LightThread"] as LightThread;
            ILightThreadable caller      = argument["caller"] as ILightThreadable; //调用者指针
            //数据
            Socket socket  = argument["socket"] as Socket;                         //特别传送数据
            String strInfo = argument["str"] as String;                            //特别传送数据

            //调用窗口的其他处理事项
            //对调用窗口的变量和方法的访问和窗口的其他函数一样(线程安全)
            //分析字符串
            CXml xmldoc = new CXml();
            Dictionary <String, String> map = xmldoc.parseStringXml(strInfo);

            if (null == map)
            {
                return;
            }
            if (map.Count <= 0)
            {
                return;
            }

            String strSentence = String.Format("请 {0} 到{1}检查", map["name"], map["room"]);
            //Call TTS to Speak
        }
Ejemplo n.º 2
0
        public ConfigParam()
        {
            CXml xmldoc = new CXml();

            system_param = xmldoc.getSystemParam();
            queue_order_change_reason = xmldoc.getQueueReason();
        }