private void button1_Click(object sender, EventArgs e) { this.openFileDialog1.ShowDialog(); sf = new SEGYFile(); sf.OpenReadOnly(this.openFileDialog1.FileName); sf.ReadAllTraces(); int stophere = 1; //this.fastLine1.Add(sf.Traces[0].Data); this.numericUpDown1.Maximum = Convert.ToDecimal(sf.Traces.Count - 1); }