Esempio n. 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.ExersiceGrouplayout);

            db = new exerciseRepository();

            listGroup = db.Where(p => p.IsExercise == false).ToList();;

            ListView         = FindViewById <ListView>(Resource.Id.lstExersiceGroup);
            ListView.Adapter = new ExersiceGroupAdapter(this, listGroup);

            ListView.ItemClick += ListView_ItemClick;
            // Create your application here
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Exerciselayout);

            var program = Intent.GetIntExtra("program", 0);
            var day     = Intent.GetIntExtra("day", 0);
            var type    = Intent.GetIntExtra("type", 0);

            db = new exerciseRepository();

            TextView lblNameGroup = FindViewById <TextView>(Resource.Id.lblNameGroup);

            lblNameGroup.Text = Intent.GetStringExtra("namegroup");

            listGroup = db.Where(p => p.IsExercise == true & p.type == type).ToList();;

            ListView         = FindViewById <ListView>(Resource.Id.lstShowExercise);
            ListView.Adapter = new ExersiceGroupAdapter(this, listGroup);

            ListView.ItemClick += ListView_ItemClick;
            int x = 0;
            // Create your application here
        }