// Constructor public Grabber(VideoStream parent) { this.parent = parent; }
// Open MMS private void openMMSFileItem_Click(object sender, System.EventArgs e) { MMSForm form = new MMSForm(); if (form.ShowDialog(this) == DialogResult.OK) { // create video source VideoStream mmsSource = new VideoStream(); mmsSource.VideoSource = form.URL; // open it OpenVideoSource(mmsSource); } }