public int AddQueue(string strCmd, int nType) { PLCCmd pCmd = new PLCCmd(); pCmd.m_strCommand = strCmd; pCmd.m_nType = nType; return(AddQueue(pCmd)); }
public PLCCmd GetQueue() { if (m_PLCQueue.Count <= 0) { return(null); } PLCCmd pCmd = new PLCCmd(); pCmd = (PLCCmd)m_PLCQueue[0]; m_PLCQueue.RemoveAt(0); return(pCmd); }
public int AddQueue(PLCCmd pCmd) { m_PLCQueue.Add(pCmd); return(m_PLCQueue.Count); }