private void ReadButton_Click(object sender, EventArgs e) { ReadForm f = new ReadForm(); f.ShowDialog(); f.Dispose(); }
private void FrameReadButton_Click(object sender, EventArgs e) { ReadForm f = new ReadForm(); DialogResult ret = f.ShowDialog(); if (ret == DialogResult.OK) { List <IRFrame> frames = f.Frames; if (frames != null && frames.Count > 0) { this.maiRButton.Format = f.Format; this.maiRButton.Frames = frames; SetFramesTextBoxValue(frames); } else { this.maiRButton.Frames = null; this.framesTextBox.Text = ""; } } f.Dispose(); }