private void DeleteHostDevice(HostDevice device)
        {
            int i = HostDevices.IndexOf(device);

            HostDevices.Remove(device);

            if (HostDevices.Count == 0)
            {
                SelectedHostDevice = null;
            }
            else
            {
                if (i == 0)
                {
                    SelectedHostDevice = HostDevices[0];
                }
                else
                {
                    SelectedHostDevice = HostDevices[i - 1];
                }
            }
        }
        private string GetHostDeviceKeyTextureLocation(string root_location, HostDevice device, HostKey key)
        {
            string device_location = Path.Combine(root_location, device.Name.Replace("/", "_"));

            return(Path.Combine(device_location, Path.GetFileName(key.TexturePath)));
        }