private void button1_Click(object sender, EventArgs e) { var segment = new WaveSegment(trackBar2.Value, trackBar3.Value, trackBar1.Value); this.App.SetDataForm(segment); this.Close(); }
public void SetDataForm(WaveSegment segment) { graph1.WaveData.AddRange(segment.Data); foreach (var i in segment.Data) { graph1.ReadData.Add(0); } graph1.Changed = true; saveMenu.Enabled = true; saveAsMenu.Enabled = true; graph1.Refresh(); }