private void CaptureForm_Load(object sender, EventArgs e) { deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); deviceListForm.OnCancel += new DeviceListForm.OnCancelDelegate(deviceListForm_OnCancel); }