private void m_buttonDevCmdMQPush_Click(object sender, EventArgs e) { //push oCmdInMQ1 var oCmdInMQ1 = new DevCmdDemo() { Id = 0, Type = "Type0" }; DevCmdMQ.getInstance().push(oCmdInMQ1); //push oCmdInMQ2 var oCmdInMQ2 = new DevCmdDemo() { Id = 1, Type = "Type1" }; DevCmdMQ.getInstance().push(oCmdInMQ2); }
private void m_buttonDevCmdMQInit_Click(object sender, EventArgs e) { DevCmdMQ.getInstance().init(); }