public ConsumerAsComment(RabbitMQServer rabbitmqServer) : base(rabbitmqServer, Config.QueueWaitAsComment, false) { string domain = "lazada.vn"; _noSqlHtml = NoSqlCommentSystem.Instance(); _producerComment = new ProducerBasic(rabbitmqServer, "Comment", "Comment.CommentUser.#"); using (var db = new DsConfigurationCommentTableAdapters.Configuration_CommentTableAdapter()) { DsConfigurationComment.Configuration_CommentDataTable tbl = new DsConfigurationComment.Configuration_CommentDataTable(); db.FillByCompanyDomain(tbl, domain); _configuration = tbl.Rows[0] as DsConfigurationComment.Configuration_CommentRow; } }
private void txtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { string strTextSearch = txtSearch.Text; using ( var db = new WSS.QAComment.Core.DsConfigurationCommentTableAdapters.Configuration_CommentTableAdapter()) { DsConfigurationComment.Configuration_CommentDataTable tblConfigurationCommentDataTable = new DsConfigurationComment.Configuration_CommentDataTable(); db.FillSelectByDomain(tblConfigurationCommentDataTable, strTextSearch); gridControl1.DataSource = tblConfigurationCommentDataTable; } } }