Esempio n. 1
0
        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,
            });
        }
Esempio n. 2
0
 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,
     });
 }