Esempio n. 1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            MyListView.ItemsSource = await MaterialDA.GetAvailableMaterialsById(CollectorViewModel.Collector.MaterialCollection);

            addedMaterialList.ItemsSource = await MaterialDA.GetMaterialsById(CollectorViewModel.Collector.MaterialCollection);
        }
Esempio n. 2
0
        private async void GetAvailableMaterials()
        {
            MaterialList = await MaterialDA.GetMaterialsById(CollectorViewModel.Collector.MaterialCollection);

            AvailableMaterialList = await MaterialDA.GetAvailableMaterialsById(CollectorViewModel.Collector.MaterialCollection);

            if (MaterialList != null)
            {
                MaterialCount = MaterialList.Count;
            }
            else
            {
                MaterialCount = 0;
                MaterialList  = new ObservableCollection <Material>();
            }
        }