protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.Main);
     Cheeseknife.Inject(this);
     Init();
 }
Example #2
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     // Set our view from the "main" layout resource
     SetContentView(Resource.Layout.Main);
     Cheeseknife.Inject(this);
     SetActionBar(toolbar);
     recyclerView.SetLayoutManager(new LinearLayoutManager(this));
     orders       = ListOrders.GetInstance;
     orderAdapter = new OrderAdapter(orders);
     recyclerView.SetAdapter(orderAdapter);
 }
Example #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.acticity_show_bill);

            Cheeseknife.Inject(this);
            SetActionBar(toolbar);
            tvSumPrices.Text = $"Sum of price: {ListOrders.GetInstance.SumOfPrices}";
            recyclerViewBill.SetLayoutManager(new LinearLayoutManager(this));
            adapter = new BillAdapter(ListOrders.GetInstance.Orders.Where(x => x.Quantity != 0).ToList());
            recyclerViewBill.SetAdapter(adapter);
            //Create your application here
        }