Esempio n. 1
0
        public void SetTAD(TADFile tadFile)
        {
            button_Refresh.Enabled = false;
            m_tadFile   = tadFile;
            m_cacheFile = null;
            TADStatistic statistic = m_tadFile.GetStatistic();

            label_Statistic.Text = String.Format(StatisticFormat, statistic.FilesCovered, statistic.FileCount, statistic.FileCoverage);
            m_sortedEntries      = tadFile.FileEntries;
            UpdateView();
        }
Esempio n. 2
0
        public void SetCache(CacheFile cacheFile)
        {
            button_Refresh.Enabled = true;
            m_cacheFile            = cacheFile;
            m_tadFile = m_cacheFile.TADFile;
            if (m_tadFile == null)
            {
                m_sortedEntries = new List <TADFileEntry>();
                UpdateView();
                return;
            }
            TADStatistic statistic = m_tadFile.GetStatistic();

            label_Statistic.Text = String.Format(StatisticFormat, statistic.FilesCovered, statistic.FileCount, statistic.FileCoverage);
            m_sortedEntries      = m_tadFile.FileEntries;
            UpdateView();
        }