private void button1_Click(object sender, EventArgs e) { this.openFileDialog1.Title = "Load SEGY rev 1 files"; if (this.openFileDialog1.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } for (int i = 0; i < this.openFileDialog1.FileNames.Length; i++) { string f = this.openFileDialog1.FileNames[i]; SEGYlib.SEGYFile s = new SEGYFile(); s.Open(f); if (s.isSEGY()) { listBox1.Items.Add(f); } s.Close(); } }
private void button1_Click(object sender, EventArgs e) { openFileDialog1.Title = "open input SEGY files"; if (openFileDialog1.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } listBox1.Items.Clear(); var sf = new SEGYFile(); foreach (var f in openFileDialog1.FileNames) { sf.Open(f); if (sf.isSEGY()) { listBox1.Items.Add(f); } sf.Close(); } }
private void trackBar1_MouseUp(object sender, MouseEventArgs e) { if (f == null) { return; } if (f.Traces == null) { if (!f.isSEGY()) { return; } scanSEGY(); } int val = this.trackBar1.Value; toolStripStatusLabel1.Text = " Current Trace #" + val.ToString(); f.GoToStartOfTrace(val); f.ReadNextTrace(); refreshTraceHeader(); }