Beispiel #1
0
        public void             DoTaskResult(IAsyncResult r)
        {
            long nTotalSize = 0;
            int  nTotalLine = 0;

            m_listview.BeginUpdate();
            foreach (String str in m_AllFiles.ToArray())
            {
                CCodeFileInfo info = new CCodeFileInfo(str);
                nTotalSize += info.nFileSize;
                nTotalLine += info.nLineNum;
                m_listview.Append(info);
            }
            m_listview.Append("", nTotalSize.ToString(), nTotalLine.ToString());
            m_listview.EndUpdate();

            m_statPane1.Text = String.Format("{0}KB({1})", m_lTotalSize / 1024, m_lTotalSize.ToString());
        }
Beispiel #2
0
 public void             Append(CCodeFileInfo CodeInfo)
 {
     Items.Add(new ListViewItem(new String[] { (Items.Count + 1).ToString(), CodeInfo.strFilePath, CodeInfo.nFileSize.ToString(), CodeInfo.nLineNum.ToString() }));
 }