internal void RemoveDeviceFromDeviceList(EgsDevice device) { if (DeviceList.Contains(device) == false) { return; } device.Close(); DeviceList.Remove(device); // TODO: MUSTDO: delete MessageReceivingForm.CurrentDevice itself MessageReceivingForm.CurrentDevice = null; }