Пример #1
0
 private void m_ctlQCBatchQuery_QuerySucceed(object sender, ctlQCBatchQuery.QuerySucceedEventArgs e)
 {
     if (this.m_rdbReplace.Checked)
     {
         this.m_lsvQCBatch.Items.Clear();
     }
     this.m_lsvQCBatch.BeginUpdate();
     foreach (clsLisQCBatchVO var in e.Result)
     {
         ListViewItem item = new ListViewItem();
         m_mthListViewItemInit(var, item);
         this.m_lsvQCBatch.Items.Add(item);
     }
     this.m_lsvQCBatch.EndUpdate();
     this.m_tabList.SelectedTab = this.m_tabList.TabPages[0];
 }
Пример #2
0
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void m_ctlQCBatchQuery_QuerySucceed(object sender, ctlQCBatchQuery.QuerySucceedEventArgs e)
        {
            if (m_lstQCBachVO == null)
            {
                m_lstQCBachVO = new List <clsLisQCBatchVO>();
            }

            if (this.m_rdbReplace.Checked)
            {
                m_lstQCBachVO.Clear();
            }

            m_lstQCBachVO.AddRange(e.Result);

            m_mthShowQCBatch(m_trvQCBatch, m_lstQCBachVO);

            m_tabList.SelectedTab = m_tbpQCBatchList;
            m_trvQCBatch.Focus();
        }