private async Task LoadStockAsync() { try { IsLoading = true; var symbols = await ClientApi.GetSymbols(); if (symbols != null) { Collection.Clear(); foreach (var symbol in symbols) { string typeName; if (Security.TypeDictionary.TryGetValue(symbol.Type.ToUpper(), out typeName)) { symbol.Type = typeName; } Collection.Add(symbol); } } Content = $"Last Loaded: {DateTime.Now.ToString()}"; } catch (Exception ex) { GetService <IMessageBoxService>()?.ShowMessage("An error occurred getting symbols data"); //Log.Error(ex); } finally { IsLoading = false; } }