private void InitializeUx() { MicroserviceList.Items.Clear(); _manifests = _configM.GetAll(); var services = (from m in _manifests.list let path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) select new Microservice { icon = path + @"\images\MicroserviceIcon.png", name = m.name }).ToList(); foreach (var service in services) { MicroserviceList.Items.Add(service); } MicroserviceList.SelectedIndex = 0; MicroserviceName.Focus(); }