コード例 #1
0
        private void ShowMessage(object paremeter)
        {
            ThreadMsgParameter tp      = paremeter as ThreadMsgParameter;
            MsgShowFrm         frmShow = new MsgShowFrm(tp.Message);//Form1为要弹出的窗体(提示框)

            frmShow.ScrollShow();
        }
コード例 #2
0
 void OnReceiveMessage(string message)
 {
     //ThreadMsgParameter parameter = new ThreadMsgParameter();
     //ThreadPool.QueueUserWorkItem(new WaitCallback(ShowMessage), parameter);
     //parameter.Message = message;
     if (message.StartsWith("msg:"))
     {                                                 //消息
         message = message.Substring(4, message.Length - 4);
         MsgShowFrm frmShow = new MsgShowFrm(message); //MsgShowFrm为要弹出的窗体(提示框)
         frmShow.ScrollShow();
     }
     else if (message.StartsWith("cmd:"))
     {
     }
 }