예제 #1
0
        //输出OVR和打分器之间的通信记录
        //该方法使用UI线程调用
        public bool callbackOutputMsg(string msg, EmMsgType type)
        {
            //当前线程不是创建控件的线程时
            if (this.InvokeRequired)
            {
                //调用invoke来转给控件owner处理(UI线程)
                //Invoke一个匿名代理,代理实例为调用方法自己
                this.Invoke((MethodInvoker) delegate { callbackOutputMsg(msg, type); });
                return(true);
            }

            msgShowAndLog(type.ToString() + ": " + msg.ToString());
            return(true);
        }
예제 #2
0
 private bool _outputMsg(string msg, EmMsgType type = EmMsgType.Normal)
 {
     return(_callback.callbackOutputMsg(msg, type));
 }