public void Choose(SelectItem item) { var idx = datas.IndexOf(item); //Debug.WriteLine($"choose {item} is at {idx}"); if (idx == -1) { return; } Choose(new SelectEventArgs() { obj = item, idx = idx, isSelect = !item.IsSelected, }); }
public void Choose(SelectItem item) { var idx = datas.IndexOf(item); //Debug.WriteLine($"choose {item} is at {idx}"); if (idx == -1) return; Choose(new SelectEventArgs() { obj = item, idx = idx, isSelect = !item.IsSelected, }); }