private void selectDevToolStripMenuItem_Click(object sender, EventArgs e) { Shutdown(); if (deviceListForm != null) { deviceListForm.Close(); } deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); deviceListForm.Show(); }
private void startToolStripMenuItem_Click(object sender, EventArgs e) { if (device == null) { deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); deviceListForm.Show(); } else { Shutdown(); } }
private void CaptureForm_Shown(object sender, EventArgs e) { deviceListForm.Show(); }