Beispiel #1
0
 public ConvertWalletPage(List <Wallet> listOfWallets)
 {
     //InitializeComponent();
     createPicker();
     createButton();
     Wallets = listOfWallets;
     Chart   = BarChartFactory.createChart(listOfWallets);
     createPage();
 }
Beispiel #2
0
        private async void refresh(String selectedSymbol)
        {
            List <Wallet> list = new List <Wallet>();

            foreach (Wallet w in Wallets)
            {
                Double qtd = await APIHandler.ConvertWithoutSaving(selectedSymbol, w, w.Quantity);

                list.Add(new Wallet(qtd, w.Symbol));
            }
            Chart = BarChartFactory.createChart(list);
            try
            {
                createPage();
            }catch (Exception e)
            {
                //
            }
        }
Beispiel #3
0
        public ConvertWalletPage(List <Wallet> listOfWallets)
        {
            //InitializeComponent();
            createPicker();
            createButton();


            var contentView = new ContentView
            {
                Content = new StackLayout
                {
                    VerticalOptions = LayoutOptions.FillAndExpand,
                    Children        =
                    {
                        Currency,
                        Button,
                        BarChartFactory.createChart(listOfWallets)
                    }
                }
            };

            Content = contentView;
        }