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

            // Model
            Model = new Model.ProductsModel();
        }
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);

            // Model
            Model = new Model.ProductsModel();
        }
		public override void OnCreate (Bundle savedInstanceState)
		{
			base.OnCreate (savedInstanceState);

			// API
			Products.Model.Api api = new Products.Model.Api();

			// Model
			Model = new Model.ProductsModel(api);
		}
Beispiel #4
0
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // API
            Products.Model.Api api = new Products.Model.Api();

            // Model
            Model = new Model.ProductsModel(api);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);

            SetContentView (Resource.Layout.Products);

            // UI elements
            ProductsList = FindViewById<ListView> (Resource.Id.productsList);

            // Model
            Model = new Model.ProductsModel();

            // Set data to ListView
            ArrayAdapter<Model.Products.ProductEntity> stringAdapter = new ArrayAdapter<Model.Products.ProductEntity>(this, Android.Resource.Layout.SimpleListItem1, Model.GetProducts());
            ProductsList.Adapter = stringAdapter;
        }
Beispiel #6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Products);

            // UI elements
            ProductsList = FindViewById <ListView> (Resource.Id.productsList);

            // Model
            Model = new Model.ProductsModel();

            // Set data to ListView
            ArrayAdapter <Model.Products.ProductEntity> stringAdapter = new ArrayAdapter <Model.Products.ProductEntity>(this, Android.Resource.Layout.SimpleListItem1, Model.GetProducts());

            ProductsList.Adapter = stringAdapter;
        }