protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.MainMenu);
            dbCart = new DatabaseCart();
            dbCart.CreateDatabase();
            db = new Database();
            db.CreateDatabase();
            //loaditems li = new loaditems();
            //li.wczytajdane();
            FindViews();
            HandleEvents();
            var message = "";

            try
            {
                message = Intent.Extras.GetString("message");
            }
            catch (Exception)
            {
            }
            finally
            {
                if (message.Length > 0)
                {
                    Toast.MakeText(Application.Context, message, ToastLength.Short).Show();
                }
            }
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.ItemDetailView);

            db = new Database();
            db.CreateDatabase();

            cartDb = new DatabaseCart();
            cartDb.CreateDatabase();

            var selectedItemId = Intent.Extras.GetInt("selectedItemId");

            testList     = db.SelectOneItem(selectedItemId);
            selectedItem = testList.FirstOrDefault();

            FindViews();
            BindData();
            HandleEvents();

            // Create your application here
        }
Example #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.CartMenuView);

            allItems = new List <Items>();

            db = new DatabaseCart();
            db.CreateDatabase();

            string folder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);

            Log.Info("FolderBazy: ", folder);


            FindViews();
            WczytajDane();
            cartListView.FastScrollEnabled = true;
            clearCart.Click += ClearCart_Click;

            cartListView.ItemClick += CartListView_ItemClick;
        }