Example #1
0
        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();
            }
        }
Example #2
0
 public void SetInitializeTheChart()
 {
     if (Chart != null)
     {
         Chart.Clear();
         Chart = null;
     }
     if (Quotes != null)
     {
         Quotes.Clear();
         Quotes = null;
     }
 }
Example #3
0
 private void OnDisconnected()
 {
     _quotesMap.Clear();
     Quotes.Clear();
 }