Exemple #1
0
        /// <summary>
        /// 过滤查找
        /// </summary>
        public void filterSearch()
        {
            String sText = m_searchTextBox.Text.ToUpper();

            m_grid.beginUpdate();
            m_grid.clearRows();
            int row = 0;
            CList <Security> securities = SecurityService.FilterCode(sText);

            if (securities != null)
            {
                int rowCount = securities.size();
                for (int i = 0; i < rowCount; i++)
                {
                    Security  security = securities.get(i);
                    FCGridRow gridRow  = new FCGridRow();
                    m_grid.addRow(gridRow);
                    gridRow.addCell(0, new FCGridStringCell(security.m_code));
                    gridRow.addCell(1, new FCGridStringCell(security.m_name));
                    row++;
                }
            }
            securities.delete();
            m_grid.endUpdate();
        }
Exemple #2
0
 /// <summary>
 /// 销毁资源
 /// </summary>
 public virtual void delete()
 {
     if (!m_isDeleted)
     {
         clear();
         if (m_columns != null)
         {
             m_columns.delete();
             m_columns = null;
         }
         if (m_keys != null)
         {
             m_keys.delete();
             m_keys = null;
         }
         if (m_rows != null)
         {
             m_rows.delete();
             m_rows = null;
         }
         m_isDeleted = true;
     }
 }