Ejemplo n.º 1
0
        public StocksPage()
        {
            InitializeComponent();

            // Make sure the page is not up in status bar and not in swipe-up area
            On <iOS>().SetUseSafeArea(true);

            BindingContext = new StocksViewModel(new StockService());
        }
Ejemplo n.º 2
0
        public GraphPage()
        {
            this.InitializeComponent();
            this.graph = new Graph();


            this.stocksViewModel = new StocksViewModel();
            this.GetUserCompanies();
            this.BindingContext = this.stocksViewModel;
        }
        public ActionResult Index()
        {
            var stocksViewModel = new StocksViewModel()
            {
                AvailableStocks = _context.GetCachedStocks()
            };

            stocksViewModel.CreateDataPoints();

            return(View(stocksViewModel));
        }
Ejemplo n.º 4
0
 public CurrentInventoryPage()
 {
     InitializeComponent();
     BindingContext = viewModel = new StocksViewModel();
 }