private void OnCategoriesDialogCategoryClick(object sender, AssignCategoriesBottomSheet.CategoryClickedEventArgs e) { var categoryId = _categorySource.Categories[e.CategoryPosition].Id; if (e.IsChecked) { _authenticatorSource.AddToCategory(e.ItemPosition, categoryId); } else { _authenticatorSource.RemoveFromCategory(e.ItemPosition, categoryId); } }
private async void OnCategoriesDialogCategoryClick(object sender, AssignCategoriesBottomSheet.CategoryClickedEventArgs e) { var categoryId = _categorySource.Get(e.CategoryPosition).Id; var authSecret = _authSource.Get(e.ItemPosition).Secret; if (e.IsChecked) { await _authSource.AddToCategory(categoryId, authSecret); } else { await _authSource.RemoveFromCategory(categoryId, authSecret); } }