async Task ExecuteLoadItemsCommand() { if (IsBusy) { return; } IsBusy = true; UserDialogs.Instance.ShowLoading(); try { Quotes.Clear(); var quotes = await GetQuotes(); foreach (var quote in quotes) { Quotes.Add(quote); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; UserDialogs.Instance.HideLoading(); } }
public void SetInitializeTheChart() { if (Chart != null) { Chart.Clear(); Chart = null; } if (Quotes != null) { Quotes.Clear(); Quotes = null; } }
private void OnDisconnected() { _quotesMap.Clear(); Quotes.Clear(); }