Beispiel #1
0
        public async Task NotifyMultiSelectedAsync(bool[] selected)
        {
            var selectedIndexes = Enumerable.Range(0, selected.Length).Where(i => selected[i]);

            ComponentValue = ItemsArray.Where((item, index) => selectedIndexes.Contains(index)).Select(x => x.SelectedValue).ToArray();
            await Task.CompletedTask;
        }
Beispiel #2
0
 public void NotifyMultiSelected(int[] selectedIndexes)
 {
     //var selectedIndexes = Enumerable.Range(0, selected.Length).Where(i => selected[i]);
     ComponentValue = ItemsArray.Where((item, index) => selectedIndexes.Contains(index)).Select(x => x.SelectedValue).ToArray();
 }