private void GetReplyBossMsg(string view, ReplyType type) { DataTable dt = SQLUtil.GetReplyBossMsg(m_Connstr, view); if (dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { ReplyBossMsg reply = IdlUtil.ParseReplyFromDataRow(dr); ReplyBossMsgExtend replyExtend = new ReplyBossMsgExtend(reply, type); if (!m_ReplyBossMsgs.Contains(replyExtend) && !CheckAlreadyWork(replyExtend)) { lock (m_ReplyBossMsgs) { m_ReplyBossMsgs.Enqueue(replyExtend); } } } } }
public ReplyBossMsgExtend(ReplyBossMsg replyBoss, ReplyType type) { this.replyBoss = replyBoss; this.type = type; }