private void LoadInstances() { this.Busy = true; this.BusyContent = "Loading instances"; try { var response = InstanceService.GetAllDbInstances(); if (response != null) { Instances = new ObservableCollection <string>(response); } } catch (Exception ex) { MessageBox.Show("Error when loading instances. " + ex.Message, "Load instances", MessageBoxButton.OK, MessageBoxImage.Error); } finally { this.Busy = false; } }