protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); if (!((GlobalvarsApp)this.Application).ISLOGON) { Finish(); } SetTitle(Resource.String.submenu_invlist); EventManagerFacade.Instance.GetEventManager().AddListener(this); // Create your application here SetContentView(Resource.Layout.ListCustView); pathToDatabase = ((GlobalvarsApp)this.Application).DATABASE_PATH; rights = Utility.GetAccessRights(pathToDatabase); TRXTYPE = Intent.GetStringExtra("trxtype") ?? "CASH"; Utility.GetDateRange(ref sdate, ref edate); populate(listData); apara = DataHelper.GetAdPara(pathToDatabase); //listView = FindViewById<ListView> (Resource.Id.feedList); //CustList listView = FindViewById <ListView> (Resource.Id.CustList); //CustList // TableLayout tlay = FindViewById<TableLayout> (Resource.Id.tableLayout1); // tlay.Visibility = ViewStates.Invisible; //Button butNew= FindViewById<Button> (Resource.Id.butnewInv); //butNew.Visibility = ViewStates.Invisible; txtSearch = FindViewById <EditText> (Resource.Id.txtSearch); //Button butInvBack= FindViewById<Button> (Resource.Id.butInvBack); Button butInvBack = FindViewById <Button> (Resource.Id.butCustBack); butInvBack.Click += (object sender, EventArgs e) => { StartActivity(typeof(TransListActivity)); }; listView.ItemClick += OnListItemClick; listView.ItemLongClick += OnListItemLongClick; //listView.Adapter = new CusotmListAdapter(this, listData); SetViewDlg viewdlg = SetViewDelegate; listView.Adapter = new GenericListAdapter <Invoice> (this, listData, Resource.Layout.ListItemRow, viewdlg); txtSearch.TextChanged += TxtSearch_TextChanged; }