private void RemoveSelectedButNotPresentDevice() { if (selectedDevice != null && !isSelectedDevicePresent) { selectedDevice.SaveMapping(); RemoveDeviceFromDeviceList(selectedDevice.DeviceInstanceId); } }