Ejemplo n.º 1
0
        private void SetupControls()
        {
            //
            //  Result list table
            //
            lvwResultListing = ListViewManagement.GenerateCustomListView(grpResultListing, Enum.GetNames(typeof(ListViewColumns)));
            int colPaddingW  = 5,
                colFilepathW = 100,
                colStatusW   = lvwResultListing.Width - colFilepathW - colPaddingW;

            lvwResultListing.Columns[(int)ListViewColumns.Status].Width   = colFilepathW;
            lvwResultListing.Columns[(int)ListViewColumns.Filepath].Width = colStatusW;
            lvwResultListing.DoubleClick += lvwResultListing_DoubleClick;
        }
Ejemplo n.º 2
0
        private void SetupControls(DateTime[] timestamps)
        {
            lvwTimestamps        = ListViewManagement.GenerateCustomListView(splResultSelection.Panel1, new string[] { TIMESTAMPS_COLUMN_HEADER });
            LvwTimestampsManager = new ListViewManagement(lvwTimestamps);
            lvwTimestamps.SelectedIndexChanged += lvwTimestamps_SelectedIndexChanged;

            var timestampText = new string[timestamps.Length][];

            for (int i = 0; i < timestamps.Length; i++)
            {
                timestampText[i] = new string[] { timestamps[i].ToString() };
            }

            LvwTimestampsManager.RefreshRows(timestampText);
            lvwFilenames        = ListViewManagement.GenerateCustomListView(splResultSelection.Panel2, new string[] { FILENAMES_COLUMN_HEADER });
            LvwFilenamesManager = new ListViewManagement(lvwFilenames);
            lvwFilenames.SelectedIndexChanged += lvwFilenames_SelectedIndexChanged;

            lvwParsedLines = ListViewManagement.GenerateCustomListView(tpSelectedFile, new string[] { ParsedLineColumns.File.ToString(),
                                                                                                      ParsedLineColumns.Line.ToString(), ParsedLineColumns.Date.ToString(), ParsedLineColumns.Message.ToString() }, gridLines: true);
            LvwParsedLinesManager = new ListViewManagement(lvwParsedLines);
        }
Ejemplo n.º 3
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     LogManagement.ProgressUpdate += LogManagement_ProgressUpdate;
     LvwManager = new ListViewManagement(lvwResultListing);
 }