예제 #1
0
        private void Wmqcl2_receivetopicEvent(WMQ.WMQData text)
        {
            listBox1.Invoke(new EventHandler(delegate { listBox1.Items.Add("topic:" + text.to + ";消息:" + text.message); }));
            count++;

            label4.Invoke(new EventHandler(delegate { label4.Text = (count).ToString(); }));
        }
예제 #2
0
        private void Wmqcl4_receiveQueueEvent(WMQ.WMQData text)
        {
            listBox2.Invoke(new EventHandler(delegate { listBox2.Items.Add("来自:" + text.form + ";消息:" + text.message); }));
            count2++;

            label7.Invoke(new EventHandler(delegate { label7.Text = (count2).ToString(); }));
        }