Beispiel #1
0
        private List <MaterialDetails> SearchDataMaterial(MaterialSearchView searchView = null)
        {
            var param = Mapper.Map <MaterialInput>(searchView);
            var data  = _materialBll.GetMaterialByParam(param);

            return(Mapper.Map <List <MaterialDetails> >(data));
        }
Beispiel #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            searchView = FindViewById <MaterialSearchView>(Resource.Id.searchView);
            searchView.SetOnQueryTextListener(this);
            searchView.SetOnSearchViewListener(this);



            var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);

            toolbar.Title = "Search";
            SetSupportActionBar(toolbar);

            myAPI = GetAPI();

            //view
            recyclerSearch = FindViewById <RecyclerView>(Resource.Id.recyclerSearch);
            layoutManager  = new LinearLayoutManager(this);
            recyclerSearch.HasFixedSize = true;
            recyclerSearch.SetLayoutManager(layoutManager);
            recyclerSearch.AddItemDecoration(new DividerItemDecoration(this, layoutManager.Orientation));

            //ilk açıılış

            RunOnUiThread(() => { ShowAllPerson(); });
        }