Beispiel #1
0
        public ProviderListViewModel(ProviderListView providerListView)
        {
            this.providerListView = providerListView;

            //TODO JEU DE DONNEES A ENLEVER
            Provider product1 = new Provider();

            product1.Id   = 1;
            product1.Name = "George";
            Provider product2 = new Provider();

            product2.Id   = 2;
            product2.Name = "Trouduc";

            List <Provider> providers = new List <Provider>();

            providers.Add(product1);
            providers.Add(product2);
            this.providerListView.ProviderListUserControl.LoadItems(providers);
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProviderListCustomAdapter"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="bindingContext">The binding context.</param>
 /// <param name="view">The view.</param>
 public ProviderListCustomAdapter(Context context, IMvxAndroidBindingContext bindingContext, ProviderListView view)
     : base(context, bindingContext)
 {
     _context = context;
     _view    = view;
 }