internal LoadingProcess(PcapFileReader pcapReader, CaseFile caseFile) : this() { this.caseFile = caseFile; this.pcapReader = pcapReader; this.textLabel.Text = caseFile.Filename; this.progressBar1.Value = 0; this.percent = 0; this.percentLabel.Text = "" + percent + " %"; this.isAborted = false; }
internal LoadingProcess(PcapFileHandler.PcapFileReader pcapReader, CaseFile caseFile) : this() { this.caseFile = caseFile; this.pcapReader = pcapReader; //this.SuspendLayout(); this.textLabel.Text = caseFile.Filename; //this.textLabel.Update(); this.progressBar1.Value = 0; this.percent = 0; this.percentLabel.Text = "" + percent + " %"; //this.ResumeLayout(false); //this.PerformLayout(); this.isAborted = false; //InitializeComponent(); }
public CaseFileForm(CaseFile caseFile) { InitializeComponent(); this.table = new DataTable(); this.table.Columns.Add(NAME, typeof(string)); this.table.Columns.Add(VALUE, typeof(string)); this.AddRow("Filename", caseFile.Filename); this.AddRow("Start", caseFile.FirstFrameTimestamp.ToString()); this.AddRow("End", caseFile.LastFrameTimestamp.ToString()); this.AddRow("Frames", caseFile.FramesCount.ToString()); this.AddRow("MD5", caseFile.Md5); List <KeyValuePair <string, string> > metadata = caseFile.Metadata; lock (metadata) { foreach (KeyValuePair <string, string> kvp in metadata) { this.AddRow(kvp.Key, kvp.Value); } } this.metadataGridView.DataSource = this.table; }