private void onCatSelected(View view, int index) { oldCategory = currentCategory; currentCategory = index; NotifyDataSetChanged(); OnCategorySelected?.Invoke(view, currentWebsite.Categories[(int)view.Tag]); }
private void ItemSelected(TableView _, int row) { var obj = _listObjects[row]; if (obj is ListDirectory dir) { OnCategorySelected?.Invoke(dir.ListName); return; } _currentIdx = row; OnItemSelected?.Invoke(obj); }