Esempio n. 1
0
      private void LoadDataSourceView(ArchiveDisplayData[] archives)
      {
         dataSourceListView.Items.Clear();
         dataSourceListView.Columns.Clear();
         dataSourceListView.Columns.Add("CF type");
         dataSourceListView.Columns.Add("Rows");
         dataSourceListView.Columns.Add("Steps");
         dataSourceListView.Columns.Add("xff");
         if (archives == null)
            return;

         if (archives.Length == 0)
            return;
         if (archives[0].StartTime != DateTime.MinValue)
         {
            dataSourceListView.Columns.Add("Start");
            dataSourceListView.Columns.Add("End");
         }

         foreach (var archive in archives)
         {
            ListViewItem lvi = dataSourceListView.Items.Add(archive.ConsolFunctionName);
            lvi.SubItems.Add(archive.RowCount.ToString());
            lvi.SubItems.Add(archive.Steps.ToString());
            lvi.SubItems.Add(archive.Xff.ToString());
            lvi.Tag = archive;
            if (archive.StartTime != DateTime.MinValue)
            {
               lvi.SubItems.Add(archive.StartTime.ToString());
               lvi.SubItems.Add(archive.EndTime.ToString());
            }
         }
      }
Esempio n. 2
0
 public void SetArchiveData(ArchiveDisplayData[] archives)
 {
    LoadDataSourceView(archives);
 }