private void cmdRemoveDevice_Click(object sender, EventArgs e) { RemoveDeviceForm f = new RemoveDeviceForm(mCurrentDeviceItem, deviceSelection_ConnectedOnlyCheckBox.Checked); if (f.ShowDialog(this) == DialogResult.OK) { refreshDeviceSelectionView(); } }